From owner-svn-src-all@FreeBSD.ORG Wed Feb 8 08:49:31 2012 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2C5BB1065670; Wed, 8 Feb 2012 08:49:31 +0000 (UTC) (envelope-from pjd@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 186088FC08; Wed, 8 Feb 2012 08:49:31 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q188nUQ2030874; Wed, 8 Feb 2012 08:49:30 GMT (envelope-from pjd@svn.freebsd.org) Received: (from pjd@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q188nUDD030871; Wed, 8 Feb 2012 08:49:30 GMT (envelope-from pjd@svn.freebsd.org) Message-Id: <201202080849.q188nUDD030871@svn.freebsd.org> From: Pawel Jakub Dawidek Date: Wed, 8 Feb 2012 08:49:30 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r231193 - head/lib/libutil X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Feb 2012 08:49:31 -0000 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) {