From 5fff16eb2082566973cfbb64630912efeb82dd18 Mon Sep 17 00:00:00 2001 From: miod <> Date: Sat, 1 Dec 2001 23:47:37 +0000 Subject: [PATCH] Warn that pidfile() will not have the expected removal behaviour if _exit() is called. --- src/lib/libutil/pidfile.3 | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/lib/libutil/pidfile.3 b/src/lib/libutil/pidfile.3 index 24c743c8..30124486 100644 --- a/src/lib/libutil/pidfile.3 +++ b/src/lib/libutil/pidfile.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: pidfile.3,v 1.3 2001/10/01 06:18:14 mpech Exp $ +.\" $OpenBSD: pidfile.3,v 1.4 2001/12/01 23:47:37 miod Exp $ .\" $NetBSD: pidfile.3,v 1.2 2001/04/12 22:34:31 sommerfeld Exp $ .\" .\" Copyright (c) 1999 The NetBSD Foundation, Inc. @@ -78,3 +78,12 @@ If is called multiple times with different .Ar basename , only the last pidfile will be removed upon exit. +.Pp +.Fn pidfile +uses +.Fn atexit +to ensure the pidfile is unlinked at program exit. +However, programs that use the +.Fn _exit +function (for example, in signal handlers) +will not trigger this behaviour.