svn commit: r229941 - head/lib/libutil

Guy Helmer ghelmer at FreeBSD.org
Tue Jan 10 21:39:43 UTC 2012


Author: ghelmer
Date: Tue Jan 10 21:39:43 2012
New Revision: 229941
URL: http://svn.freebsd.org/changeset/base/229941

Log:
  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.

Modified:
  head/lib/libutil/pidfile.3

Modified: head/lib/libutil/pidfile.3
==============================================================================
--- head/lib/libutil/pidfile.3	Tue Jan 10 20:52:02 2012	(r229940)
+++ head/lib/libutil/pidfile.3	Tue Jan 10 21:39:43 2012	(r229941)
@@ -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


More information about the svn-src-all mailing list