sync();
/* Send signals to every process _except_ pid 1 */
- message(CONSOLE | LOG, "Sending SIGTERM to all processes.");
+ message(CONSOLE | LOG, init_sending_format, "TERM");
kill(-1, SIGTERM);
sleep(1);
sync();
- message(CONSOLE | LOG, "Sending SIGKILL to all processes.");
+ message(CONSOLE | LOG, init_sending_format, "KILL");
kill(-1, SIGKILL);
sleep(1);
sync();
/* Send signals to every process _except_ pid 1 */
- message = "Sending SIGTERM to all processes.";
- syslog(pri, "%s", message);
+ message = "TERM";
+ syslog(pri, init_sending_format, message);
printf(bb_shutdown_format, message);
kill(-1, SIGTERM);
sleep(1);
sync();
- message = "Sending SIGKILL to all processes.";
- syslog(pri, "%s", message);
+ message = "KILL";
+ syslog(pri, init_sending_format, message);
printf(bb_shutdown_format, message);
kill(-1, SIGKILL);
extern int kill_init(int sig);
extern int bb_shutdown_system(unsigned long magic);
+const char * const init_sending_format = "Sending SIG%s to all processes.";