From aa3df4d05bf9c975b5a2e0de1794530a8186f3a8 Mon Sep 17 00:00:00 2001 From: joerg Date: Sun, 12 Mar 1995 23:37:28 +0000 Subject: Do not try to make any notice if the PID file cannot be created. Makes folks happy that run slattach in single-user, where /var/run is probably missing. --- sbin/slattach/slattach.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'sbin/slattach') diff --git a/sbin/slattach/slattach.c b/sbin/slattach/slattach.c index f89bc7d..8bac57e 100644 --- a/sbin/slattach/slattach.c +++ b/sbin/slattach/slattach.c @@ -248,9 +248,7 @@ void acquire_line() sleep (1); /* Wait for parent to die. */ /* create PID file */ - if((pidfile = fopen(pidfilename, "w")) == NULL) { - syslog(LOG_NOTICE,"cannot create PID file: %m"); - } else { + if((pidfile = fopen(pidfilename, "w"))) { fprintf(pidfile, "%ld\n", getpid()); fclose(pidfile); } -- cgit v1.1