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:
parent
0b69904450
commit
719060e911
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user