Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libutil Add serial commas. Fix minus. Sort SEE ALSO. Fix...



details:   https://anonhg.NetBSD.org/src/rev/27d71a1e4676
branches:  trunk
changeset: 344682:27d71a1e4676
user:      wiz <wiz%NetBSD.org@localhost>
date:      Mon Apr 11 08:49:57 2016 +0000

description:
Add serial commas. Fix minus. Sort SEE ALSO. Fix xref.

diffstat:

 lib/libutil/pidfile.3 |  20 ++++++++++----------
 1 files changed, 10 insertions(+), 10 deletions(-)

diffs (71 lines):

diff -r 8c86be2dcf5e -r 27d71a1e4676 lib/libutil/pidfile.3
--- a/lib/libutil/pidfile.3     Mon Apr 11 08:44:40 2016 +0000
+++ b/lib/libutil/pidfile.3     Mon Apr 11 08:49:57 2016 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: pidfile.3,v 1.14 2016/04/10 19:05:50 roy Exp $
+.\"    $NetBSD: pidfile.3,v 1.15 2016/04/11 08:49:57 wiz Exp $
 .\"
 .\" Copyright (c) 1999, 2016 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -98,7 +98,7 @@
 .Fn pidfile_clean
 will
 .Xr ftruncate 2 ,
-.Xr close 2
+.Xr close 2 ,
 and
 .Xr unlink 2
 the last opening pid file if, and only if, the current process wrote it.
@@ -109,15 +109,15 @@
 .Fn pidfile
 and
 .Fn pidfile_clean
-returns 0 on success and -1 on failure.
+returns 0 on success and \-1 on failure.
 .Pp
 .Fn pidfile_lock
 returns 0 on success.
 Otherwise, the process ID who owns the lock is returned and if that
-cannot be derived then -1 is returned.
+cannot be derived then \-1 is returned.
 .Pp
 .Fn pidfile_read
-returns the process ID if known, otherwise -1.
+returns the process ID if known, otherwise \-1.
 .Sh ERRORS
 The
 .Fn pidfile
@@ -132,8 +132,8 @@
 Specified pidfile's name is too long.
 .El
 .Sh SEE ALSO
-.Xr atexit 3 ,
-.Xr flock 2
+.Xr flock 2 ,
+.Xr atexit 3
 .Sh HISTORY
 The
 .Fn pidfile
@@ -144,7 +144,7 @@
 .Pp
 The
 .Fn pidfile_lock ,
-.Fn pidfile_read
+.Fn pidfile_read ,
 and
 .Fn pidfile_clean
 function calls appeared in
@@ -160,11 +160,11 @@
 .Xr _exit 2
 function (for example, in signal handlers)
 will not trigger this behaviour and should call
-.Xr pidfile_clean.
+.Fn pidfile_clean .
 Like-wise, if the program creates a pid file before
 .Xr fork 2 Ns ing
 a child to take over, it should use the
 .Xr _exit 2
 function instead of returning or using the
-.Xr exit 2
+.Xr exit 3
 function to ensure the pid file is not cleaned.



Home | Main Index | Thread Index | Old Index