Robert Elz <[email protected]> wrote:

> [External Email. Be cautious of content]
> 
> 
>     Date:        Fri, 5 Feb 2021 10:19:10 -0800
>     From:        "Simon J. Gerraty" <[email protected]>
>     Message-ID:  <[email protected]>
> 
>   | The open in mkstemp can fail due to EINTR.
>   | That's the only reason I see for blocking signals.
> 
> Surely the reason would have been to avoid leaving stray temp files
> lying around if a signal were to arrive between creating the temp
> file and unlinking it (in the !debug case when it is unlinked) ?

That is certainly a valid reason to have done so.

Reply via email to