diff options
-rw-r--r-- | sbin/slattach/slattach.c | 4 |
1 files changed, 1 insertions, 3 deletions
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); } |