SCCS-vsn: lib/libc/gen/syslog.c 5.9
if (pid == -1)
return;
if (pid == 0) {
if (pid == -1)
return;
if (pid == 0) {
signal(SIGALRM, SIG_DFL);
sigsetmask(sigblock(0) & ~sigmask(SIGALRM));
alarm(5);
signal(SIGALRM, SIG_DFL);
sigsetmask(sigblock(0) & ~sigmask(SIGALRM));
alarm(5);
- LogFile = open(ctty, O_WRONLY);
+ fd = open(ctty, O_WRONLY);
alarm(0);
strcat(o, "\r");
o = index(outline, '>') + 1;
alarm(0);
strcat(o, "\r");
o = index(outline, '>') + 1;
- write(LogFile, o, c + 1 - (o - outline));
- close(LogFile);
- exit(0);
+ write(fd, o, c + 1 - (o - outline));
+ close(fd);
+ _exit(0);
}
if (!(LogStat & LOG_NOWAIT))
while ((c = wait((int *)0)) > 0 && c != pid)
}
if (!(LogStat & LOG_NOWAIT))
while ((c = wait((int *)0)) > 0 && c != pid)