From 7f8d054f8aa98ec4697381bc16e948fa39e436d9 Mon Sep 17 00:00:00 2001 From: Pawel Jakub Dawidek Date: Wed, 8 Feb 2012 08:43:41 +0000 Subject: [PATCH] Note that calling pidfile_write(3) multiple times is fine. MFC after: 3 days --- lib/libutil/pidfile.3 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/libutil/pidfile.3 b/lib/libutil/pidfile.3 index d10ab81e4f8..8b604cbb806 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