backout previous change (removal of pidfile(3) call). requested by core.
This commit is contained in:
parent
88068bf42a
commit
c257ec3afe
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: rtsold.8,v 1.19 2004/01/03 13:10:27 wiz Exp $
|
||||
.\" $NetBSD: rtsold.8,v 1.20 2004/01/08 02:48:43 itojun Exp $
|
||||
.\" $KAME: rtsold.8,v 1.17 2001/07/09 22:30:37 itojun Exp $
|
||||
.\"
|
||||
.\" Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
|
||||
|
@ -28,7 +28,7 @@
|
|||
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
.\" SUCH DAMAGE.
|
||||
.\"
|
||||
.Dd January 3, 2004
|
||||
.Dd May 17, 1998
|
||||
.Dt RTSOLD 8
|
||||
.Os
|
||||
.\"
|
||||
|
@ -188,6 +188,9 @@ program exits 0 on success, and \*[Gt]0 on failures.
|
|||
.\"
|
||||
.Sh FILES
|
||||
.Bl -tag -width /var/run/rtsold.dump -compact
|
||||
.It Pa /var/run/rtsold.pid
|
||||
the pid of the currently running
|
||||
.Nm rtsold .
|
||||
.It Pa /var/run/rtsold.dump
|
||||
dumps internal state on.
|
||||
.El
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: rtsold.c,v 1.27 2004/01/03 06:16:40 itojun Exp $ */
|
||||
/* $NetBSD: rtsold.c,v 1.28 2004/01/08 02:48:43 itojun Exp $ */
|
||||
/* $KAME: rtsold.c,v 1.77 2004/01/03 01:35:13 itojun Exp $ */
|
||||
|
||||
/*
|
||||
|
@ -256,6 +256,15 @@ main(int argc, char **argv)
|
|||
/*NOTREACHED*/
|
||||
}
|
||||
|
||||
/* dump the current pid */
|
||||
if (!once) {
|
||||
if (pidfile(NULL) < 0) {
|
||||
warnmsg(LOG_ERR, __func__,
|
||||
"failed to open a pid log file: %s",
|
||||
strerror(errno));
|
||||
}
|
||||
}
|
||||
|
||||
for (;;) { /* main loop */
|
||||
int e;
|
||||
|
||||
|
|
Loading…
Reference in New Issue