svn commit: r231193 - head/lib/libutil

Pawel Jakub Dawidek pjd at FreeBSD.org
Wed Feb 8 08:49:31 UTC 2012


Author: pjd
Date: Wed Feb  8 08:49:30 2012
New Revision: 231193
URL: http://svn.freebsd.org/changeset/base/231193

Log:
  Add a comment to the example that pidfile_* functions can handle pfh being NULL.
  
  MFC after:	3 days

Modified:
  head/lib/libutil/pidfile.3

Modified: head/lib/libutil/pidfile.3
==============================================================================
--- head/lib/libutil/pidfile.3	Wed Feb  8 08:43:41 2012	(r231192)
+++ head/lib/libutil/pidfile.3	Wed Feb  8 08:49:30 2012	(r231193)
@@ -150,6 +150,11 @@ if (pfh == NULL) {
 	}
 	/* If we cannot create pidfile from other reasons, only warn. */
 	warn("Cannot open or create pidfile");
+	/*
+	 * Eventhough pfh is NULL we can continue, as the other pidfile_*
+	 * function can handle such situation by doing nothing except setting
+	 * errno to EDOOFUS.
+	 */
 }
 
 if (daemon(0, 0) == -1) {


More information about the svn-src-head mailing list