summaryrefslogtreecommitdiffstats
path: root/lib/libutil/pidfile.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Actually, the C standard only guarantees that atexit(3) returns non-zeroschwarze2019-06-281-2/+2
| | | | | on error, so tweak previous to test "atexit(...) != 0" for portability. "OK ok ok sorry backwards" deraadt@
* atexit() returns -1 on failurederaadt2019-06-281-2/+2
|
* Remove three NULL-checks before free(). ok millert@mmcc2015-11-271-5/+3
|
* Do not assume that asprintf() clears the pointer on failure, whichmillert2015-06-031-3/+2
| | | | | is non-portable. Also add missing asprintf() return value checks. OK deraadt@ guenther@ doug@
* sys/types.h rather than sys/param.h, where applicable. avoid overreach.deraadt2014-06-301-2/+2
|
* Fix FILE * leak in error path if fprintf fails. Found by and OK gilles@millert2013-10-011-2/+4
|
* First pass at removing clauses 3 and 4 from NetBSD licenses.ray2008-06-261-8/+1
| | | | | | | | | Not sure what's more surprising: how long it took for NetBSD to catch up to the rest of the BSDs (including UCB), or the amount of code that NetBSD has claimed for itself without attributing to the actual authors. OK deraadt@
* scrape $Id$ tags.espie2005-08-021-5/+1
| | | | okay deraadt@, millert@, krw@
* knf; otto okderaadt2004-05-281-3/+3
|
* pid_t cleanupderaadt2002-05-261-3/+3
|
* atexit(3) can fail. handle error accordingly. deraadt okitojun2002-05-221-3/+11
| | | | | XXX libraries should not use atexit(3) from within, as program can terminate with _exit.
* pids should be pid_t, not intmpech2002-01-021-3/+3
|
* save the pid as well, and only do the atexit in the same pidderaadt2001-12-081-9/+13
|
* add pidfile(3) - write a daemon pid file. ok deraadt@, millert@.jakob2001-09-281-0/+105