]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
The at_exit and at_fork functions currently use a 'roll your own'
authorPoul-Henning Kamp <phk@FreeBSD.org>
Fri, 19 Nov 1999 21:29:03 +0000 (21:29 +0000)
committerPoul-Henning Kamp <phk@FreeBSD.org>
Fri, 19 Nov 1999 21:29:03 +0000 (21:29 +0000)
commit93efcae809aa8f6d7c94d55503520a0aa03d405f
tree71b4b3a9700f7d0066e9f187937e6a486e88709a
parent046eea23cf5090fb96421712b3b7de2f7fc3c4b9
The at_exit and at_fork functions currently use a 'roll your own'
linked list to store the callbak routines.  The patch converts the
lists to queue(3) TAILQs, making the code slightly clearer and ensuring
that callbacks are executed in FIFO order.

Man page also updated as necesary.

(discontinued use of M_TEMP malloc type while here anyway /phk)

Submitted by:   Jake Burkholder jake@checker.org
PR:             14912
share/man/man9/at_exit.9
share/man/man9/at_fork.9
sys/kern/kern_exit.c
sys/kern/kern_fork.c