mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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
1 changed files with 4 additions and 0 deletions
|
|
@ -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…
Reference in a new issue