Don't use non-signal-safe functions (exit(3) in this case) in
signal handlers. In this case, use _exit(2) instead, following the call to shutdown(2). This fixes rare telnetd hangs. PR: misc/33672 Submitted by: Umesh Krishnaswamy <umesh@juniper.net> MFC after: 1 month
This commit is contained in:
parent
7d6571799b
commit
81cc5956d9
@ -1327,5 +1327,5 @@ cleanup(int sig __unused)
|
||||
(void)chmod(line, 0666);
|
||||
(void)chown(line, 0, 0);
|
||||
(void) shutdown(net, 2);
|
||||
exit(1);
|
||||
_exit(1);
|
||||
}
|
||||
|
@ -1327,5 +1327,5 @@ cleanup(int sig __unused)
|
||||
(void)chmod(line, 0666);
|
||||
(void)chown(line, 0, 0);
|
||||
(void) shutdown(net, 2);
|
||||
exit(1);
|
||||
_exit(1);
|
||||
}
|
||||
|
@ -1180,5 +1180,5 @@ cleanup(int sig __unused)
|
||||
(void)chmod(line, 0666);
|
||||
(void)chown(line, 0, 0);
|
||||
(void) shutdown(net, 2);
|
||||
exit(1);
|
||||
_exit(1);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user