aboutsummaryrefslogtreecommitdiff
path: root/lib/libutil/pidfile.c
Commit message (Expand)AuthorAgeFilesLines
* Remove $FreeBSD$: one-line .c patternWarner Losh2023-08-161-2/+0
* spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSDWarner Losh2023-05-121-1/+1
* pidfile: add pidfile_signalMateusz Guzik2022-04-091-15/+61
* Add CAP_EVENT to pidfiles.David Bright2020-06-251-1/+1
* Use funlinkat in pidfile to ensure we are removing the right file.Mariusz Zaborski2019-04-061-1/+4
* Fix pidfile_open(3) to handle relative paths with multiple components.Mark Johnston2019-03-271-9/+13
* lib: further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-261-0/+2
* Limit descriptors stored in the pidfh structure.Mariusz Zaborski2017-08-101-7/+23
* Store directory descriptor in the pidfh structure and use unlinkat(2)Mariusz Zaborski2017-08-101-24/+53
* libutil: minor spelling fixes.Pedro F. Giffuni2016-05-181-1/+1
* 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