diff options
author | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2002-05-31 22:09:15 +0000 |
---|---|---|
committer | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2002-05-31 22:09:15 +0000 |
commit | 0502d24b0648ba8e93a41388d0a01866a61b53fc (patch) | |
tree | d0ad7f6ca04924d6f709c6d4d7bde4a48b87d695 /usr.sbin/rtsold/rtsold.c | |
parent | 44b0448f13ebe56a0d39f9b9b8669e401a288c88 (diff) |
remove unused portion of code (pidfile(3) alternative)
Diffstat (limited to 'usr.sbin/rtsold/rtsold.c')
-rw-r--r-- | usr.sbin/rtsold/rtsold.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/usr.sbin/rtsold/rtsold.c b/usr.sbin/rtsold/rtsold.c index 95f2c4c55ca..8b02e68008c 100644 --- a/usr.sbin/rtsold/rtsold.c +++ b/usr.sbin/rtsold/rtsold.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rtsold.c,v 1.22 2002/05/31 22:05:16 itojun Exp $ */ +/* $OpenBSD: rtsold.c,v 1.23 2002/05/31 22:09:14 itojun Exp $ */ /* $KAME: rtsold.c,v 1.51 2002/05/31 22:00:11 itojun Exp $ */ /* @@ -257,25 +257,11 @@ main(argc, argv) /* dump the current pid */ if (!once) { -#if (defined(__NetBSD__) && __NetBSD_Version__ >= 106010000) || defined(__OpenBSD__) if (pidfile(NULL) < 0) { warnmsg(LOG_ERR, __FUNCTION__, "failed to open a pid log file: %s", strerror(errno)); } -#else - pid_t pid = getpid(); - FILE *fp; - - if ((fp = fopen(pidfilename, "w")) == NULL) - warnmsg(LOG_ERR, __FUNCTION__, - "failed to open a pid log file(%s): %s", - pidfilename, strerror(errno)); - else { - fprintf(fp, "%d\n", pid); - fclose(fp); - } -#endif } memset(fdsetp, 0, fdmasks); |