[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[sysvinit-devel] [PATCH] Sending processes configured via /etc/inittab t
From: |
Askar Safin |
Subject: |
[sysvinit-devel] [PATCH] Sending processes configured via /etc/inittab the KILL signal |
Date: |
Sun, 29 Jun 2014 01:06:12 +0400 |
Hi, please apply this patch. It makes a message less confusing. I. e. now we
understand that init doesn't kill all processes, but instead kill mentioned in
inittab ones. This patch is taken from "Linux From Scratch" (
http://www.linuxfromscratch.org/lfs/view/stable/chapter03/patches.html ).
==
Askar Safin
http://vk.com/safinaskar
Moscow, Russia
Moscow State University, http://msu.ru , Faculty of Mechanics and Mathematics,
Department of Mathematical Logic and Theory of Algorithms
diff -Naur sysvinit-2.88dsf.orig/src/init.c sysvinit-2.88dsf/src/init.c
--- sysvinit-2.88dsf.orig/src/init.c 2010-04-13 04:48:54.000000000 -0500
+++ sysvinit-2.88dsf/src/init.c 2013-12-12 16:17:34.292881603 -0600
@@ -1498,14 +1498,14 @@
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;
}
- [sysvinit-devel] [PATCH] Sending processes configured via /etc/inittab the KILL signal,
Askar Safin <=