Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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!



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: