Can I rely absolutely on what happens when a process dies.

Dan Fandrich dan at coneharvesters.com
Tue Dec 7 17:46:36 UTC 2010


On Tue, Dec 07, 2010 at 10:26:00AM +0000, David Collier wrote:
> I am struggling a bit with locating and sending signals to processes like
> udhcpc.
> 
> I enabled the "write your pid to this file" option... but of course the
> file persists after the process dies... so if you look in the file for a
> pid... and some other process has started up in the meantime with the
> SAME pid, you will send your signal to the wrong flipping process.

The directory holding pid files ought to be on a volatile filesystem like
tmpfs, or cleared out early on after booting.

>>> Dan


More information about the busybox mailing list