Improve message printed when signaling processes to stop. Patch from Matias A. Fonzo at the dragora project.
This commit is contained in:
parent
1017641f3e
commit
571c45f3e6
@ -51,6 +51,8 @@ sysvinit (2.89dsf) UNRELEASED; urgency=low
|
||||
to get the source building on FreeBSD.
|
||||
* Add some code to be able to detect programs even as user with
|
||||
kernel 3.0 and above
|
||||
* Improve message printed when signaling processes to stop.
|
||||
Patch from Matias A. Fonzo at the dragora project.
|
||||
|
||||
-- Petter Reinholdtsen <pere@hungry.com> Sun Apr 11 11:28:55 CEST 2010
|
||||
|
||||
|
@ -1542,14 +1542,14 @@ void read_inittab(void)
|
||||
case 0: /* Send TERM signal */
|
||||
if (talk)
|
||||
initlog(L_CO,
|
||||
"Sending processes the TERM signal");
|
||||
"Sending processes configured via /etc/inittab the TERM signal");
|
||||
kill(-(ch->pid), SIGTERM);
|
||||
foundOne = 1;
|
||||
break;
|
||||
case 1: /* Send KILL signal and collect status */
|
||||
if (talk)
|
||||
initlog(L_CO,
|
||||
"Sending processes the KILL signal");
|
||||
"Sending processes configured via /etc/inittab the KILL signal");
|
||||
kill(-(ch->pid), SIGKILL);
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user