News for hackers. Stuff that matters.
Re:Signals in Prod: Dangers and Pitfalls by LunaSea on Tuesday October 04, 2022 @02:38AM (#33077248)
> Note that such a check is inherently racy, though.

Do you mean in a kind of "time of check vs. time of use" kind of way?

I would suppose that if the answer is negative that would at least stay true no?

Re:Signals in Prod: Dangers and Pitfalls by saagarjha on Tuesday October 04, 2022 @05:59AM (#33078265)
Yes. If the process exits (and is perhaps replaced by something else!) in between the two checks you will take actions based on stale information.