summaryrefslogtreecommitdiff
path: root/lib/libutil/pidfile.c
Commit message (Expand)AuthorAgeFilesLines
* libutil: Use O_CLOEXEC for internal file descriptors from open().Jilles Tjoelker2013-08-281-1/+1
* When pidptr was passed as NULL to pidfile_open(3), we were returningPawel Jakub Dawidek2013-03-141-13/+18
* Set the O_CLOEXEC flag when opening the pidfile to avoid leaking theGuy Helmer2012-02-201-1/+1
* Using the O_CLOEXEC flag on open(2) caused the pidfile lock to be lostGuy Helmer2012-02-061-1/+1
* Move struct pidfh definition into pidfile.c, and leave a forward declarationGuy Helmer2012-01-121-0/+7
* jilles pointed out that O_CLOEXEC could be used in the open(2) flagsGuy Helmer2012-01-111-14/+1
* Constify arguments.Pawel Jakub Dawidek2012-01-111-2/+2
* Style fixes courtesy of pjd.Guy Helmer2012-01-101-0/+1
* Add pidfile_fileno() to obtain the file descriptor for an openGuy Helmer2012-01-101-0/+10
* Set the FD_CLOEXEC flag on the open pidfile file descriptor.Guy Helmer2012-01-101-0/+14
* In pidfile_open(), if the pidfile is locked, but empty (PID is not stored yet)Pawel Jakub Dawidek2011-10-161-12/+12
* There is no point in releasing a lock on a file which we've unlinked andDag-Erling Smørgrav2008-10-201-4/+0
* When pidfile is already locked and has zero length, do not returnKonstantin Belousov2007-10-121-1/+15
* Back out previous commit until I figure out why my regression test fails.Dag-Erling Smørgrav2007-08-031-10/+4
* Use fcntl(2)-style locks instead of less-portable flock(2)-style locks.Dag-Erling Smørgrav2007-08-031-4/+10
* strlcpy() may be faster than snprintf(), but it is less portable, and thisDag-Erling Smørgrav2007-05-111-8/+8
* Use flopen(3).Dag-Erling Smørgrav2007-05-101-2/+2
* Remove some unused variablesBrian Somers2006-06-231-2/+0
* use pwrite to always write at the begining of the file.. If multiple callsJohn-Mark Gurney2006-04-111-1/+1
* Add a family of functions for reliable pidfiles handling.Pawel Jakub Dawidek2005-08-241-0/+246