Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: src
Module Name: src
Committed By: jmmv
Date: Tue Mar 29 13:55:37 UTC 2011
Modified Files:
src/lib/libutil: pidfile.3 pidfile.c
src/tests/lib/libutil: t_pidfile.c
Log Message:
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".
To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/lib/libutil/pidfile.3
cvs rdiff -u -r1.8 -r1.9 src/lib/libutil/pidfile.c
cvs rdiff -u -r1.2 -r1.3 src/tests/lib/libutil/t_pidfile.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Home |
Main Index |
Thread Index |
Old Index