mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-28 21:07:55 +00:00
SIGKILL is not catchable
This commit is contained in:
parent
449c4a290a
commit
abe0314e01
@ -395,7 +395,6 @@ replay_session(const double max_wait, const char *decimal)
|
|||||||
sa.sa_flags = SA_RESETHAND;
|
sa.sa_flags = SA_RESETHAND;
|
||||||
sa.sa_handler = sudoreplay_handler;
|
sa.sa_handler = sudoreplay_handler;
|
||||||
(void) sigaction(SIGINT, &sa, NULL);
|
(void) sigaction(SIGINT, &sa, NULL);
|
||||||
(void) sigaction(SIGKILL, &sa, NULL);
|
|
||||||
(void) sigaction(SIGTERM, &sa, NULL);
|
(void) sigaction(SIGTERM, &sa, NULL);
|
||||||
(void) sigaction(SIGHUP, &sa, NULL);
|
(void) sigaction(SIGHUP, &sa, NULL);
|
||||||
(void) sigaction(SIGQUIT, &sa, NULL);
|
(void) sigaction(SIGQUIT, &sa, NULL);
|
||||||
@ -1235,7 +1234,7 @@ sudoreplay_cleanup(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Signal handler for SIGINT, SIGKILL, SIGTERM, SIGHUP
|
* Signal handler for SIGINT, SIGTERM, SIGHUP, SIGQUIT
|
||||||
* Must be installed with SA_RESETHAND enabled.
|
* Must be installed with SA_RESETHAND enabled.
|
||||||
*/
|
*/
|
||||||
static void
|
static void
|
||||||
|
Loading…
x
Reference in New Issue
Block a user