3 ms·
I don't expect many programs do this (and I agree the real solution would be handles) but it should be possible to check the timestamp on the PID file and only
by dataflow 5y ago
I don't expect many programs do this (and I agree the real solution would be handles) but it should be possible to check the timestamp on the PID file and only kill the corresponding process if its startup time was earlier.
There might still be race conditions but this should cut down the chance dramatically.