Commit Graph

7 Commits

Author SHA1 Message Date
itojun c2c2980f42 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)
2002-05-22 07:31:40 +00:00
taca 2788a3f274 Remove an extra character in a comment block. 2001-10-20 09:20:28 +00:00
tron 2a957ed711 - 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.
2001-10-19 20:36:59 +00:00
cgd 65a1026492 convert to use getprogname() 2001-02-19 22:43:42 +00:00
ad fce98185a9 - __RCSID() police.
- ANSIfy.
- Miscellaneous style changes.
- Shutup lint(1) in one or two cases.
2000-07-05 11:46:40 +00:00
thorpej 014350bb41 Use asprintf(3), as suggested by Simon Burge. 1999-06-06 17:31:09 +00:00
thorpej fb695fdcb9 Add pidfile(3), which write a pid file in /var/run, and arranges for it
to be removed on normal exit.
1999-06-06 01:50:00 +00:00