summaryrefslogtreecommitdiff
path: root/lib/libutil/pidfile.c
AgeCommit message (Collapse)Author
2019-06-28Actually, the C standard only guarantees that atexit(3) returns non-zeroIngo Schwarze
on error, so tweak previous to test "atexit(...) != 0" for portability. "OK ok ok sorry backwards" deraadt@
2019-06-28atexit() returns -1 on failureTheo de Raadt
2015-11-27Remove three NULL-checks before free(). ok millert@mmcc
2015-06-03Do not assume that asprintf() clears the pointer on failure, whichTodd C. Miller
is non-portable. Also add missing asprintf() return value checks. OK deraadt@ guenther@ doug@
2014-06-30sys/types.h rather than sys/param.h, where applicable. avoid overreach.Theo de Raadt
2013-10-01Fix FILE * leak in error path if fprintf fails. Found by and OK gilles@Todd C. Miller
2008-06-26First pass at removing clauses 3 and 4 from NetBSD licenses.Ray Lai
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@
2005-08-02scrape $Id$ tags.Marc Espie
okay deraadt@, millert@, krw@
2004-05-28knf; otto okTheo de Raadt
2002-05-26pid_t cleanupTheo de Raadt
2002-05-22atexit(3) can fail. handle error accordingly. deraadt okJun-ichiro itojun Hagino
XXX libraries should not use atexit(3) from within, as program can terminate with _exit.
2002-01-02pids should be pid_t, not intMike Pechkin
2001-12-08save the pid as well, and only do the atexit in the same pidTheo de Raadt
2001-09-28add pidfile(3) - write a daemon pid file. ok deraadt@, millert@.Jakob Schlyter