diff options
Diffstat (limited to 'sbin/slattach/slattach.c')
-rw-r--r-- | sbin/slattach/slattach.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/slattach/slattach.c b/sbin/slattach/slattach.c index 8bac57e..915175f 100644 --- a/sbin/slattach/slattach.c +++ b/sbin/slattach/slattach.c @@ -185,7 +185,7 @@ int main(int argc, char **argv) cp++; /* trailing tty pathname component */ sprintf(pidfilename, "%sslattach.%s.pid", _PATH_VARRUN, cp); printf("%s\n",pidfilename); - + if (!foreground) daemon(0,0); /* fork, setsid, chdir /, and close std*. */ /* daemon() closed stderr, so log errors from here on. */ @@ -252,7 +252,7 @@ void acquire_line() fprintf(pidfile, "%ld\n", getpid()); fclose(pidfile); } - + if ((int)signal(SIGHUP,sighup_handler) < 0) /* Re-enable HUP signal */ syslog(LOG_NOTICE,"cannot install SIGHUP handler: %m"); |