3 ms·
Linux 3.15 will also include a better renameat2 function with parameters that allow to write better pid file placing and handling without race conditions. http
by co2 12y ago
Linux 3.15 will also include a better renameat2 function with parameters that allow to write better pid file placing and handling without race conditions.
http://man7.org/linux/man-pages/man2/renameat2.2.html http://man7.org/linux/man-pages/man2/renameat2.2.html
- quotemstr 12y agoOf course, it'd be nice if we could solve PID races entirely. The POSIX system is unbelievably broken compared to how NT does it. (No, "PID wraparound happens slow enough not to matter" is not a good foundation for a robust system.)
- lomnakkus 12y agoDoesn't e.g. systemd solve this problem? (PID files are just a bad idea.)