From 18c0c440eb16e9e54a48e1c4af1de22f98b598b9 Mon Sep 17 00:00:00 2001 From: Joerg Wunsch Date: Sun, 12 Mar 1995 23:37:28 +0000 Subject: [PATCH] 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(-) diff --git a/sbin/slattach/slattach.c b/sbin/slattach/slattach.c index f89bc7dd7500..8bac57eaa84c 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); }