Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Feb 2012 08:49:30 +0000 (UTC)
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r231193 - head/lib/libutil
Message-ID:  <201202080849.q188nUDD030871@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201202080849.q188nUDD030871>