Contents of /trunk/busybox/patches/busybox-1.20.2-no-send-signals.patch
Parent Directory | Revision Log
Revision 1863 -
(show annotations)
(download)
Mon Jul 30 12:31:13 2012 UTC (12 years, 2 months ago) by niro
File size: 625 byte(s)
Mon Jul 30 12:31:13 2012 UTC (12 years, 2 months ago) by niro
File size: 625 byte(s)
-added no-send-signals patch
1 | diff -Naur busybox-1.20.2/init/init.c busybox-1.20.2-magellan/init/init.c |
2 | --- busybox-1.20.2/init/init.c 2012-06-26 15:35:45.000000000 +0200 |
3 | +++ busybox-1.20.2-magellan/init/init.c 2012-07-30 16:27:04.642982795 +0200 |
4 | @@ -738,14 +738,6 @@ |
5 | |
6 | message(L_CONSOLE | L_LOG, "The system is going down NOW!"); |
7 | |
8 | - /* Send signals to every process _except_ pid 1 */ |
9 | - kill(-1, SIGTERM); |
10 | - message(L_CONSOLE | L_LOG, "Sent SIG%s to all processes", "TERM"); |
11 | - sync(); |
12 | - sleep(1); |
13 | - |
14 | - kill(-1, SIGKILL); |
15 | - message(L_CONSOLE, "Sent SIG%s to all processes", "KILL"); |
16 | sync(); |
17 | /*sleep(1); - callers take care about making a pause */ |
18 | } |