Home | History | Annotate | Download | only in libutil
History log of /src/lib/libutil/pidfile.c
RevisionDateAuthorComments
 1.16  01-Aug-2021  andvar fix typos in word "otherwise".
 1.15  27-Dec-2019  msaitoh s/sucess/success/ in comment.
 1.14  12-Apr-2016  roy branches: 1.14.16;
Removed botched debug left over.
 1.13  12-Apr-2016  roy Fix pidfile location path rules to match prior version.
 1.12  10-Apr-2016  roy Implement pidfile_lock, pidfile_read and pidfile_clean.

Discussed on tech-net@, ok core@.
 1.11  22-Jan-2015  christos s/basename/bname/
 1.10  22-Jan-2015  christos - not all asprintfs return -1 *and* set buf = NULL, check explicitly.
- don't shadow basename(3)
 1.9  29-Mar-2011  jmmv Extend pidfile(3) to support creating pid files in arbitrary locations.

If the argument provided to pidfile(3) contains a '/', then the value is
considered to be an absolute/relative path and the pid file is created
in the given location.

Otherwise, pidfile(3) behaves as before and treats the provided value as
a basename to construct a pid file in /var/run/<basename>.pid. This means
that to create a pid file named "foo.pid" in the current directory, one
must specify "./foo.pid".
 1.8  28-Apr-2008  martin branches: 1.8.8;
Remove clause 3 and 4 from TNF licenses
 1.7  22-May-2002  itojun branches: 1.7.30;
change return type of pidfile(3) to int (-1 on error), to inform caller
of errors. behavior now in sync with openbsd implementation.
(see tech-userlevel and bsd-api-discuss)
 1.6  20-Oct-2001  taca Remove an extra character in a comment block.
 1.5  19-Oct-2001  tron - Don't delete the pidfile if the process executing the cleanup handler
isn't the process who created it.
- If a new basename is supplied remove the an old pidfile if it was created
by this process and create a new one as suggested by Jason Thorpe.
This fixes PR lib/13357 by Greg A. Woods.
 1.4  19-Feb-2001  cgd convert to use getprogname()
 1.3  05-Jul-2000  ad - __RCSID() police.
- ANSIfy.
- Miscellaneous style changes.
- Shutup lint(1) in one or two cases.
 1.2  06-Jun-1999  thorpej Use asprintf(3), as suggested by Simon Burge.
 1.1  06-Jun-1999  thorpej Add pidfile(3), which write a pid file in /var/run, and arranges for it
to be removed on normal exit.
 1.7.30.1  18-May-2008  yamt sync with head.
 1.8.8.2  28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.8.8.1  28-Apr-2008  martin file pidfile.c was added on branch christos-time_t on 2008-04-28 20:23:04 +0000
 1.14.16.1  08-Apr-2020  martin Merge changes from current as of 20200406

RSS XML Feed