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.
This commit is contained in:
Guy Helmer 2012-01-10 21:39:43 +00:00
parent 0b69904450
commit 719060e911
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=229941

View File

@ -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