From 10c35ce6a7ce675b54be3fb34106d11202bf2f32 Mon Sep 17 00:00:00 2001 From: ghelmer Date: Tue, 10 Jan 2012 21:39:43 +0000 Subject: Document that pidfile_open() now sets the FD_CLOEXEC flag on the open file descriptor, and that errors can be returned as a result of the fcntl(2) system call. --- lib/libutil/pidfile.3 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/libutil/pidfile.3 b/lib/libutil/pidfile.3 index 7ab9857..e11276f 100644 --- a/lib/libutil/pidfile.3 +++ b/lib/libutil/pidfile.3 @@ -79,6 +79,9 @@ argument is .Dv NULL , .Pa /var/run/ Ns Ao Va progname Ac Ns Pa .pid file will be used. +The +.Fn pidfile_open +function sets the FD_CLOEXEC close-on-exec flag on the open file descriptor. .Pp The .Fn pidfile_write @@ -200,6 +203,7 @@ The function may also fail and set .Va errno for any errors specified for the +.Xr fcntl 2 , .Xr fstat 2 , .Xr open 2 , and -- cgit v1.1