summaryrefslogtreecommitdiffstats
path: root/sbin/slattach
diff options
context:
space:
mode:
authorjoerg <joerg@FreeBSD.org>1995-03-12 23:37:28 +0000
committerjoerg <joerg@FreeBSD.org>1995-03-12 23:37:28 +0000
commitaa3df4d05bf9c975b5a2e0de1794530a8186f3a8 (patch)
treef0e878b8e6936fee1ed1e5e33499be23b76f3cc0 /sbin/slattach
parent918019dbbdac1461aa95629db3d864b7701860ff (diff)
downloadFreeBSD-src-aa3df4d05bf9c975b5a2e0de1794530a8186f3a8.zip
FreeBSD-src-aa3df4d05bf9c975b5a2e0de1794530a8186f3a8.tar.gz
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.
Diffstat (limited to 'sbin/slattach')
-rw-r--r--sbin/slattach/slattach.c4
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);
}
OpenPOWER on IntegriCloud