mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-24 11:29:10 +00:00
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
cc9f4eb939
commit
fa3e900453
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=90242
@ -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…
Reference in New Issue
Block a user