News for hackers. Stuff that matters.
Re:The Unix process API is unreliable and unsafe by emmelaich on Wednesday March 22, 2023 @07:59PM (#35268766)
There's a fun story about pids and TOCTOU. If you start the process then signal it soon after, you are extremely unlikely to run foul of the race.

Except ... on AIX at some time, they randomised pid usage. So it was now far more likely!

The reason they randomised pid usage was because the random number routine used the pid+time+something else!

There are no comments on this comment yet.