History log of /openbsd-current/lib/libutil/pidfile.c
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.14 28-Jun-2019 schwarze

Actually, the C standard only guarantees that atexit(3) returns non-zero
on error, so tweak previous to test "atexit(...) != 0" for portability.
"OK ok ok sorry backwards" deraadt@


# 1.13 28-Jun-2019 deraadt

atexit() returns -1 on failure


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.12 27-Nov-2015 mmcc

Remove three NULL-checks before free(). ok millert@


Revision tags: OPENBSD_5_8_BASE
# 1.11 03-Jun-2015 millert

Do not assume that asprintf() clears the pointer on failure, which
is non-portable. Also add missing asprintf() return value checks.
OK deraadt@ guenther@ doug@


Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE
# 1.10 30-Jun-2014 deraadt

sys/types.h rather than sys/param.h, where applicable. avoid overreach.


Revision tags: OPENBSD_5_5_BASE
# 1.9 01-Oct-2013 millert

Fix FILE * leak in error path if fprintf fails. Found by and OK gilles@


Revision tags: OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE
# 1.8 26-Jun-2008 ray

First pass at removing clauses 3 and 4 from NetBSD licenses.

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@


Revision tags: OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE
# 1.7 02-Aug-2005 espie

scrape $Id$ tags.
okay deraadt@, millert@, krw@


Revision tags: OPENBSD_3_6_BASE OPENBSD_3_7_BASE
# 1.6 28-May-2004 deraadt

knf; otto ok


Revision tags: OPENBSD_3_2_BASE OPENBSD_3_3_BASE OPENBSD_3_4_BASE OPENBSD_3_5_BASE
# 1.5 26-May-2002 deraadt

pid_t cleanup


# 1.4 22-May-2002 itojun

atexit(3) can fail. handle error accordingly. deraadt ok
XXX libraries should not use atexit(3) from within, as program can terminate
with _exit.


Revision tags: OPENBSD_3_1_BASE
# 1.3 02-Jan-2002 mpech

pids should be pid_t, not int


# 1.2 08-Dec-2001 deraadt

save the pid as well, and only do the atexit in the same pid


Revision tags: OPENBSD_3_0_BASE
# 1.1 28-Sep-2001 jakob

add pidfile(3) - write a daemon pid file. ok deraadt@, millert@.


# 1.13 28-Jun-2019 deraadt

atexit() returns -1 on failure


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.12 27-Nov-2015 mmcc

Remove three NULL-checks before free(). ok millert@


Revision tags: OPENBSD_5_8_BASE
# 1.11 03-Jun-2015 millert

Do not assume that asprintf() clears the pointer on failure, which
is non-portable. Also add missing asprintf() return value checks.
OK deraadt@ guenther@ doug@


Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE
# 1.10 30-Jun-2014 deraadt

sys/types.h rather than sys/param.h, where applicable. avoid overreach.


Revision tags: OPENBSD_5_5_BASE
# 1.9 01-Oct-2013 millert

Fix FILE * leak in error path if fprintf fails. Found by and OK gilles@


Revision tags: OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE
# 1.8 26-Jun-2008 ray

First pass at removing clauses 3 and 4 from NetBSD licenses.

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@


Revision tags: OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE
# 1.7 02-Aug-2005 espie

scrape $Id$ tags.
okay deraadt@, millert@, krw@


Revision tags: OPENBSD_3_6_BASE OPENBSD_3_7_BASE
# 1.6 28-May-2004 deraadt

knf; otto ok


Revision tags: OPENBSD_3_2_BASE OPENBSD_3_3_BASE OPENBSD_3_4_BASE OPENBSD_3_5_BASE
# 1.5 26-May-2002 deraadt

pid_t cleanup


# 1.4 22-May-2002 itojun

atexit(3) can fail. handle error accordingly. deraadt ok
XXX libraries should not use atexit(3) from within, as program can terminate
with _exit.


Revision tags: OPENBSD_3_1_BASE
# 1.3 02-Jan-2002 mpech

pids should be pid_t, not int


# 1.2 08-Dec-2001 deraadt

save the pid as well, and only do the atexit in the same pid


Revision tags: OPENBSD_3_0_BASE
# 1.1 28-Sep-2001 jakob

add pidfile(3) - write a daemon pid file. ok deraadt@, millert@.


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE
# 1.12 27-Nov-2015 mmcc

Remove three NULL-checks before free(). ok millert@


Revision tags: OPENBSD_5_8_BASE
# 1.11 03-Jun-2015 millert

Do not assume that asprintf() clears the pointer on failure, which
is non-portable. Also add missing asprintf() return value checks.
OK deraadt@ guenther@ doug@


Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE
# 1.10 30-Jun-2014 deraadt

sys/types.h rather than sys/param.h, where applicable. avoid overreach.


Revision tags: OPENBSD_5_5_BASE
# 1.9 01-Oct-2013 millert

Fix FILE * leak in error path if fprintf fails. Found by and OK gilles@


Revision tags: OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE
# 1.8 26-Jun-2008 ray

First pass at removing clauses 3 and 4 from NetBSD licenses.

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@


Revision tags: OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE
# 1.7 02-Aug-2005 espie

scrape $Id$ tags.
okay deraadt@, millert@, krw@


Revision tags: OPENBSD_3_6_BASE OPENBSD_3_7_BASE
# 1.6 28-May-2004 deraadt

knf; otto ok


Revision tags: OPENBSD_3_2_BASE OPENBSD_3_3_BASE OPENBSD_3_4_BASE OPENBSD_3_5_BASE
# 1.5 26-May-2002 deraadt

pid_t cleanup


# 1.4 22-May-2002 itojun

atexit(3) can fail. handle error accordingly. deraadt ok
XXX libraries should not use atexit(3) from within, as program can terminate
with _exit.


Revision tags: OPENBSD_3_1_BASE
# 1.3 02-Jan-2002 mpech

pids should be pid_t, not int


# 1.2 08-Dec-2001 deraadt

save the pid as well, and only do the atexit in the same pid


Revision tags: OPENBSD_3_0_BASE
# 1.1 28-Sep-2001 jakob

add pidfile(3) - write a daemon pid file. ok deraadt@, millert@.