smgl/simpleinit-msb: initial commit
[grimoire-witchcraft.git] / smgl / simpleinit-msb / patches / simpleinit-1000uid.patch
blobbf1d90c57b86d260140801ee9dc9965be8b996a9
1 --- login-utils/shutdown.8.bak 2004-06-04 15:48:59.310506982 -0700
2 +++ login-utils/shutdown.8 2001-09-26 03:59:46.000000000 -0700
3 @@ -64,7 +64,7 @@
4 .I /var/log/wtmp
5 file and terminates all processes as follows:
7 -It kills (SIGTERM) all non-privileged (uid>=100) processes on the system,
8 +It kills (SIGTERM) all non-privileged (uid>=1000) processes on the system,
9 executes \fBfinalprog\fP as specified in \fI/etc/inittab\fP (see
10 .BR init (8)
11 ) with the argument "stop", tells
12 --- login-utils/shutdown.c.bak 2004-06-04 15:47:48.586379290 -0700
13 +++ login-utils/shutdown.c 2004-06-04 15:48:17.197949294 -0700
14 @@ -413,7 +413,7 @@
15 #ifndef DEBUGGING
16 my_puts ("");
17 my_puts (""); /* Get past the login prompt */
18 - /* a gentle kill of all other processes except those with uid>=100 */
19 + /* a gentle kill of all other processes except those with uid>=1000 */
20 /* the message stating this is in kill_mortals() because it is */
21 /* only printed if some processes are actually killed.*/
22 kill_mortals (SIGTERM);
23 @@ -789,7 +789,7 @@
24 pid = atoi (de->d_name);
25 sprintf (path, "/proc/%d", pid);
26 if (stat (path, &statbuf) != 0) continue;
27 - if (statbuf.st_uid < 100) continue;
28 + if (statbuf.st_uid < 1000) continue;
29 if (index >= npids)
31 pids2 = realloc (pids, (npids+4096)*sizeof(pid_t));
32 @@ -801,7 +801,7 @@
34 closedir (dp);
35 if (pids == NULL) return;
36 - my_puts ("Sending TERM signal to processes with UID>=100...");
37 + my_puts ("Sending TERM signal to processes with UID>=1000...");
38 for (--index; index >= 0; --index) kill (pids[index], sig);
39 free (pids);
40 } /* End Function kill_mortals */