svn commit: r229942 - head/lib/libutil
Guy Helmer
ghelmer at FreeBSD.org
Tue Jan 10 21:47:59 UTC 2012
Author: ghelmer
Date: Tue Jan 10 21:47:58 2012
New Revision: 229942
URL: http://svn.freebsd.org/changeset/base/229942
Log:
Style fixes courtesy of pjd.
Modified:
head/lib/libutil/pidfile.3
head/lib/libutil/pidfile.c
Modified: head/lib/libutil/pidfile.3
==============================================================================
--- head/lib/libutil/pidfile.3 Tue Jan 10 21:39:43 2012 (r229941)
+++ head/lib/libutil/pidfile.3 Tue Jan 10 21:47:58 2012 (r229942)
@@ -100,7 +100,7 @@ function closes and removes a pidfile.
.Pp
The
.Fn pidfile_fileno
-function returns the file descriptor for the open pid file.
+function returns the file descriptor for the open pidfile.
.Sh RETURN VALUES
The
.Fn pidfile_open
@@ -118,7 +118,9 @@ will be set.
The
.Fn pidfile_fileno
function returns the low-level file descriptor.
-It returns -1 and sets
+It returns
+.Li -1
+and sets
.Va errno
if a NULL
.Vt pidfh
Modified: head/lib/libutil/pidfile.c
==============================================================================
--- head/lib/libutil/pidfile.c Tue Jan 10 21:39:43 2012 (r229941)
+++ head/lib/libutil/pidfile.c Tue Jan 10 21:47:58 2012 (r229942)
@@ -270,6 +270,7 @@ pidfile_remove(struct pidfh *pfh)
int
pidfile_fileno(struct pidfh *pfh)
{
+
if (pfh == NULL || pfh->pf_fd == -1) {
errno = EDOOFUS;
return (-1);
More information about the svn-src-head
mailing list