aboutsummaryrefslogtreecommitdiff
path: root/procps
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2006-11-01 20:20:37 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2006-11-01 20:20:37 +0000
commitdd539f76877000e333796da8f30ea760c080a69a (patch)
tree26f8642cd9e8cc1c2ca0b75a6b20801863b4e2cf /procps
parent92258541449581302e180d05e827e27d35030a18 (diff)
downloadbusybox-w32-dd539f76877000e333796da8f30ea760c080a69a.tar.gz
busybox-w32-dd539f76877000e333796da8f30ea760c080a69a.tar.bz2
busybox-w32-dd539f76877000e333796da8f30ea760c080a69a.zip
Unneeded code removed, usused field "unsigned pscpu" removed
Diffstat (limited to 'procps')
-rw-r--r--procps/kill.c7
-rw-r--r--procps/ps.c4
2 files changed, 6 insertions, 5 deletions
diff --git a/procps/kill.c b/procps/kill.c
index f22bdbe46..1b31a7291 100644
--- a/procps/kill.c
+++ b/procps/kill.c
@@ -84,9 +84,10 @@ do_it_now:
84 pid_t sid; 84 pid_t sid;
85 procps_status_t* p; 85 procps_status_t* p;
86 86
87 /* kill(-1, sig) on Linux (at least 2.1.x) 87// Cannot happen anyway? We don't TERM ourself, we STOP
88 * might send signal to the calling process too */ 88// /* kill(-1, sig) on Linux (at least 2.1.x)
89 signal(SIGTERM, SIG_IGN); 89// * might send signal to the calling process too */
90// signal(SIGTERM, SIG_IGN);
90 /* Now stop all processes */ 91 /* Now stop all processes */
91 kill(-1, SIGSTOP); 92 kill(-1, SIGSTOP);
92 /* Find out our own session id */ 93 /* Find out our own session id */
diff --git a/procps/ps.c b/procps/ps.c
index da8c2a346..92608b114 100644
--- a/procps/ps.c
+++ b/procps/ps.c
@@ -25,7 +25,7 @@ int ps_main(int argc, char **argv)
25#if ENABLE_FEATURE_PS_WIDE || ENABLE_SELINUX 25#if ENABLE_FEATURE_PS_WIDE || ENABLE_SELINUX
26#if ENABLE_FEATURE_PS_WIDE 26#if ENABLE_FEATURE_PS_WIDE
27 opt_complementary = "-:ww"; 27 opt_complementary = "-:ww";
28 USE_SELINUX(i =) getopt32(argc, argv, "w" USE_SELINUX("c"), &w_count); 28 USE_SELINUX(i =) getopt32(argc, argv, USE_SELINUX("c") "w", &w_count);
29 /* if w is given once, GNU ps sets the width to 132, 29 /* if w is given once, GNU ps sets the width to 132,
30 * if w is given more than once, it is "unlimited" 30 * if w is given more than once, it is "unlimited"
31 */ 31 */
@@ -40,7 +40,7 @@ int ps_main(int argc, char **argv)
40 i = getopt32(argc, argv, "c"); 40 i = getopt32(argc, argv, "c");
41#endif 41#endif
42#if ENABLE_SELINUX 42#if ENABLE_SELINUX
43 if ((i & (1+ENABLE_FEATURE_PS_WIDE)) && is_selinux_enabled()) 43 if ((i & 1) && is_selinux_enabled())
44 use_selinux = 1; 44 use_selinux = 1;
45#endif 45#endif
46#endif /* ENABLE_FEATURE_PS_WIDE || ENABLE_SELINUX */ 46#endif /* ENABLE_FEATURE_PS_WIDE || ENABLE_SELINUX */