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.
|
to get the source building on FreeBSD.
|
||||||
* Add some code to be able to detect programs even as user with
|
* Add some code to be able to detect programs even as user with
|
||||||
kernel 3.0 and above
|
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
|
-- 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 */
|
case 0: /* Send TERM signal */
|
||||||
if (talk)
|
if (talk)
|
||||||
initlog(L_CO,
|
initlog(L_CO,
|
||||||
"Sending processes the TERM signal");
|
"Sending processes configured via /etc/inittab the TERM signal");
|
||||||
kill(-(ch->pid), SIGTERM);
|
kill(-(ch->pid), SIGTERM);
|
||||||
foundOne = 1;
|
foundOne = 1;
|
||||||
break;
|
break;
|
||||||
case 1: /* Send KILL signal and collect status */
|
case 1: /* Send KILL signal and collect status */
|
||||||
if (talk)
|
if (talk)
|
||||||
initlog(L_CO,
|
initlog(L_CO,
|
||||||
"Sending processes the KILL signal");
|
"Sending processes configured via /etc/inittab the KILL signal");
|
||||||
kill(-(ch->pid), SIGKILL);
|
kill(-(ch->pid), SIGKILL);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user