Home | History | Annotate | Download | only in libutil
History log of /src/lib/libutil/pidfile.3
RevisionDateAuthorComments
 1.16  22-Oct-2017  abhinav Add missing functions to the NAME section
 1.15  11-Apr-2016  wiz Add serial commas. Fix minus. Sort SEE ALSO. Fix xref.
 1.14  10-Apr-2016  roy Implement pidfile_lock, pidfile_read and pidfile_clean.

Discussed on tech-net@, ok core@.
 1.13  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.12  05-May-2010  wiz Mark up NULL with Dv.
 1.11  04-May-2010  jruoho Use .Fn instead of .Nm.
 1.10  30-Apr-2008  martin branches: 1.10.8;
Convert TNF licenses to new 2 clause variant
 1.9  16-Apr-2003  wiz branches: 1.9.30;
Use
.In header.h
instead of
.Fd #include \*[Lt]header.h\*[Gt]
Much easier to read and write, and supported by groff for ages.
Okayed by ross.
 1.8  01-Oct-2002  wiz New sentence, new line. From Robert Elz.
 1.7  22-May-2002  wiz Grammar fix, and drop a .Pp after a section header.
 1.6  22-May-2002  itojun if called multiple times with different names, only the last pid file
will be kept
 1.5  22-May-2002  itojun 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.4  07-Feb-2002  ross Generate <>& symbolically.
 1.3  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.2  12-Apr-2001  sommerfeld Fix typo.
 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.9.30.1  18-May-2008  yamt sync with head.
 1.10.8.2  30-Apr-2008  martin Convert TNF licenses to new 2 clause variant
 1.10.8.1  30-Apr-2008  martin file pidfile.3 was added on branch christos-time_t on 2008-04-30 13:10:53 +0000

RSS XML Feed