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
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
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
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);
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;
31 pids2 = realloc (pids, (npids+4096)*sizeof(pid_t));
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);
40 } /* End Function kill_mortals */