[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: branch master updated: remote-server: Fix fetch worker crash.
From: |
Mathieu Othacehe |
Subject: |
Re: branch master updated: remote-server: Fix fetch worker crash. |
Date: |
Mon, 06 Dec 2021 09:50:20 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) |
Hey Ludo,
> I think it’s be safer (less prone to TOCTTOU races) to write it as:
>
> (catch 'system-error
> (lambda ()
> (register-gc-roots drv))
> (lambda args
> (unless (= ENOENT (system-error-errno args)) ;collected in the meantime
> (apply throw args))))
Oh, indeed! Fixed with 6dcf2f65cea920b9b1c265de3e2b0abe0048a08e.
Thanks,
Mathieu