summaryrefslogtreecommitdiffstats
path: root/lib/libutil
diff options
context:
space:
mode:
authorghelmer <ghelmer@FreeBSD.org>2012-01-10 21:39:43 +0000
committerghelmer <ghelmer@FreeBSD.org>2012-01-10 21:39:43 +0000
commit10c35ce6a7ce675b54be3fb34106d11202bf2f32 (patch)
tree9d1a956d97021c3fadec3e18a3d6c9ef8117f0a2 /lib/libutil
parent71799b431bfdcc6687169a2c9f1ff6af523427b7 (diff)
downloadFreeBSD-src-10c35ce6a7ce675b54be3fb34106d11202bf2f32.zip
FreeBSD-src-10c35ce6a7ce675b54be3fb34106d11202bf2f32.tar.gz
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.
Diffstat (limited to 'lib/libutil')
-rw-r--r--lib/libutil/pidfile.34
1 files changed, 4 insertions, 0 deletions
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
OpenPOWER on IntegriCloud