summaryrefslogtreecommitdiffstats
path: root/lib/libutil/pidfile.3
Commit message (Collapse)AuthorAgeFilesLines
* Add missing .Ppdes2009-06-061-0/+1
|
* pidfile(3) uses flopen(3) - don't make any assumptions about how thedes2008-10-201-9/+8
| | | | latter is implemented.
* Minor mdoc cleanup: Every sentence should start on its own line.simon2007-10-131-1/+2
|
* When pidfile is already locked and has zero length, do not returnkib2007-10-121-0/+4
| | | | | | | | | | | | | | success and zero pid from pidfile_read(). Return EAGAIN instead. Sleep up to three times for 5 ms while waiting for pidfile to be written. mount(8) does the kill(mountpid, SIGHUP). If mountd pidfile is truncated, that would result in the SIGHUP delivered to the mount' process group instead of the mountd. Found and analyzed by: Peter Holm Tested by: Peter Holm, kris Reviewed by: pjd MFC after: 1 week
* Use `intmax_t' instead of plain `int' for pid_t casts.keramida2006-03-041-3/+3
| | | | | | Useful tips from: ru, bde Approved by: pjd MFC after: 3 days
* - Add a note that passing NULL to pidfile_write(), pidfile_remove() andpjd2006-01-281-3/+13
| | | | | | | pidfile_close() functions is safe. This possibility is used in example code. - Cast pid_t to int. Requested by: yar
* Fix markup, grammar and spelling.ru2005-11-181-32/+44
|
* Pidfiles should be created with permission preventing users from openingpjd2005-09-161-1/+1
| | | | | | | them for reading. When user can open file for reading, he can also flock(2) it, which can lead to confusions. Pointed out by: green
* Add a family of functions for reliable pidfiles handling.pjd2005-08-241-0/+227
Idea from: jmg Discussed on: arch@
OpenPOWER on IntegriCloud