summaryrefslogtreecommitdiff
path: root/lib/libutil/pidfile.c
AgeCommit message (Expand)Author
2023-11-26lib: Automated cleanup of cdefs and other formattingWarner Losh
2023-08-16Remove $FreeBSD$: one-line .c patternWarner Losh
2023-05-12spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSDWarner Losh
2022-04-09pidfile: add pidfile_signalMateusz Guzik
2020-06-25Add CAP_EVENT to pidfiles.David Bright
2019-04-06Use funlinkat in pidfile to ensure we are removing the right file.Mariusz Zaborski
2019-03-27Fix pidfile_open(3) to handle relative paths with multiple components.Mark Johnston
2017-11-26lib: further adoption of SPDX licensing ID tags.Pedro F. Giffuni
2017-08-10Limit descriptors stored in the pidfh structure.Mariusz Zaborski
2017-08-10Store directory descriptor in the pidfh structure and use unlinkat(2)Mariusz Zaborski
2016-05-18libutil: minor spelling fixes.Pedro F. Giffuni
2013-08-28libutil: Use O_CLOEXEC for internal file descriptors from open().Jilles Tjoelker
2013-03-14When pidptr was passed as NULL to pidfile_open(3), we were returningPawel Jakub Dawidek
2012-02-20Set the O_CLOEXEC flag when opening the pidfile to avoid leaking theGuy Helmer
2012-02-06Using the O_CLOEXEC flag on open(2) caused the pidfile lock to be lostGuy Helmer
2012-01-12Move struct pidfh definition into pidfile.c, and leave a forward declarationGuy Helmer
2012-01-11jilles pointed out that O_CLOEXEC could be used in the open(2) flagsGuy Helmer
2012-01-11Constify arguments.Pawel Jakub Dawidek
2012-01-10Style fixes courtesy of pjd.Guy Helmer
2012-01-10Add pidfile_fileno() to obtain the file descriptor for an openGuy Helmer
2012-01-10Set the FD_CLOEXEC flag on the open pidfile file descriptor.Guy Helmer
2011-10-16In pidfile_open(), if the pidfile is locked, but empty (PID is not stored yet)Pawel Jakub Dawidek
2008-10-20There is no point in releasing a lock on a file which we've unlinked andDag-Erling Smørgrav
2007-10-12When pidfile is already locked and has zero length, do not returnKonstantin Belousov
2007-08-03Back out previous commit until I figure out why my regression test fails.Dag-Erling Smørgrav
2007-08-03Use fcntl(2)-style locks instead of less-portable flock(2)-style locks.Dag-Erling Smørgrav
2007-05-11strlcpy() may be faster than snprintf(), but it is less portable, and thisDag-Erling Smørgrav
2007-05-10Use flopen(3).Dag-Erling Smørgrav
2006-06-23Remove some unused variablesBrian Somers
2006-04-11use pwrite to always write at the begining of the file.. If multiple callsJohn-Mark Gurney
2005-08-24Add a family of functions for reliable pidfiles handling.Pawel Jakub Dawidek