summaryrefslogtreecommitdiff
path: root/lib/libutil
diff options
context:
space:
mode:
authorJakob Schlyter <jakob@cvs.openbsd.org>2001-09-28 20:27:57 +0000
committerJakob Schlyter <jakob@cvs.openbsd.org>2001-09-28 20:27:57 +0000
commit2425c3425a3f594f5e9daa38639c0eab990886a2 (patch)
tree1be967f2027e15e8df82eef0921b4092f656e32f /lib/libutil
parent1bcb56b0ba3428de4fa98d350648cf810907e29f (diff)
multiple calls to pidfile(3) are actually ok, but there are problems if you change the basename
Diffstat (limited to 'lib/libutil')
-rw-r--r--lib/libutil/pidfile.312
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/libutil/pidfile.3 b/lib/libutil/pidfile.3
index d1e4be08797..84fd391e213 100644
--- a/lib/libutil/pidfile.3
+++ b/lib/libutil/pidfile.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: pidfile.3,v 1.1 2001/09/28 20:16:42 jakob Exp $
+.\" $OpenBSD: pidfile.3,v 1.2 2001/09/28 20:27:56 jakob Exp $
.\" $NetBSD: pidfile.3,v 1.2 2001/04/12 22:34:31 sommerfeld Exp $
.\"
.\" Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -61,10 +61,6 @@ The pid file can be used as a quick reference if
the process needs to be sent a signal. When the program exits,
the pid file will be removed automatically, unless the program
receives a fatal signal.
-.Pp
-Note that only the first invocation of
-.Nm
-causes a pid file to be written; subsequent invocations have no effect.
.Sh RETURN VALUES
.Fn pidfile
returns 0 on success and -1 on failure.
@@ -75,3 +71,9 @@ The
.Nm
function call appeared in
.Ox 3.0 .
+.Sh CAVEATS
+If
+.Fn pidfile
+is called multiple times with different
+.Ar basename ,
+only the last pidfile will be removed upon exit.