summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2001-12-01 23:47:38 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2001-12-01 23:47:38 +0000
commitea26b471ae4f8c6a976bab79f0f166ec6a3a8344 (patch)
tree8539df4c8420d0bad65815feb46373c3d5a3fe8d
parentd34e0138614715d2c5ee3060e84552c15c8200bb (diff)
Warn that pidfile() will not have the expected removal behaviour if _exit()
is called.
-rw-r--r--lib/libutil/pidfile.311
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/libutil/pidfile.3 b/lib/libutil/pidfile.3
index 24c743c80c3..3012448615b 100644
--- a/lib/libutil/pidfile.3
+++ b/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.