Source-Changes-HG archive

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

[src/trunk]: src/dist/ipf `Normalize' the pid file contents to "<pid><newline...



details:   https://anonhg.NetBSD.org/src/rev/4e1781239ee0
branches:  trunk
changeset: 525781:4e1781239ee0
user:      kleink <kleink%NetBSD.org@localhost>
date:      Wed Apr 17 12:06:23 2002 +0000

description:
`Normalize' the pid file contents to "<pid><newline>", just like
pidfile(3) does; patch sent to Darren a while ago.

diffstat:

 dist/ipf/ipmon.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r d026ea24c64e -r 4e1781239ee0 dist/ipf/ipmon.c
--- a/dist/ipf/ipmon.c  Wed Apr 17 11:52:47 2002 +0000
+++ b/dist/ipf/ipmon.c  Wed Apr 17 12:06:23 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ipmon.c,v 1.9 2002/04/09 02:32:52 thorpej Exp $        */
+/*     $NetBSD: ipmon.c,v 1.10 2002/04/17 12:06:23 kleink Exp $        */
 
 /*
  * Copyright (C) 1993-2002 by Darren Reed.
@@ -1183,7 +1183,7 @@
                fprintf(stderr, "unable to open/create pid file: %s\n", file);
                return;
        }
-       fprintf(fp, "%d", getpid());
+       fprintf(fp, "%d\n", getpid());
        fclose(fp);
        close(fd);
 }



Home | Main Index | Thread Index | Old Index