summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2012-02-08 08:43:41 +0000
committerpjd <pjd@FreeBSD.org>2012-02-08 08:43:41 +0000
commitb87f041277fe73b38d32a446dd6b6d32a7fef443 (patch)
tree9854b4f474e9f1b303db7cc1aecdc425ed925d95 /lib
parentf0596397a6ddff1ba920f96fffd52b8043862267 (diff)
downloadFreeBSD-src-b87f041277fe73b38d32a446dd6b6d32a7fef443.zip
FreeBSD-src-b87f041277fe73b38d32a446dd6b6d32a7fef443.tar.gz
Note that calling pidfile_write(3) multiple times is fine.
MFC after: 3 days
Diffstat (limited to 'lib')
-rw-r--r--lib/libutil/pidfile.35
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/libutil/pidfile.3 b/lib/libutil/pidfile.3
index d10ab81..8b604cb 100644
--- a/lib/libutil/pidfile.3
+++ b/lib/libutil/pidfile.3
@@ -24,7 +24,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd October 16, 2011
+.Dd February 8, 2012
.Dt PIDFILE 3
.Os
.Sh NAME
@@ -85,6 +85,9 @@ function sets the O_CLOEXEC close-on-exec flag when opening the pidfile.
The
.Fn pidfile_write
function writes process' PID into a previously opened file.
+The file is truncated before write, so calling the
+.Fn pidfile_write
+function multiple times is supported.
.Pp
The
.Fn pidfile_close
OpenPOWER on IntegriCloud