1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-04 12:52:15 +00:00

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.
This commit is contained in:
Joerg Wunsch 1995-03-12 23:37:28 +00:00
parent 1e25d964d2
commit 18c0c440eb
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=7045

View File

@ -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);
}