Index: inetd.c =================================================================== RCS file: /cvs/src/usr.sbin/inetd/inetd.c,v retrieving revision 1.138 diff -u -p -r1.138 inetd.c --- inetd.c 17 Jun 2014 03:12:37 -0000 1.138 +++ inetd.c 9 Oct 2014 06:48:16 -0000 @@ -271,7 +271,6 @@ void retry(int); void doretry(void); void die(int); void dodie(void); -void logpid(void); void spawn(struct servtab *, int); int gettcp(struct servtab *); int setconfig(void); @@ -385,7 +384,6 @@ main(int argc, char *argv[]) } openlog("inetd", LOG_PID | LOG_NOWAIT, LOG_DAEMON); - logpid(); if (getrlimit(RLIMIT_NOFILE, &rlim_nofile) < 0) { syslog(LOG_ERR, "getrlimit: %m"); @@ -1554,17 +1552,6 @@ inetd_setproctitle(char *a, int s) setproctitle("-%s [?]", a); } else setproctitle("-%s", a); -} - -void -logpid(void) -{ - FILE *fp; - - if ((fp = fopen(_PATH_INETDPID, "w")) != NULL) { - fprintf(fp, "%ld\n", (long)getpid()); - (void)fclose(fp); - } } int