projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
02f47e9
)
kill: improve comment
author
Denis Vlasenko
<vda.linux@googlemail.com>
Sun, 6 May 2007 22:51:52 +0000
(22:51 -0000)
committer
Denis Vlasenko
<vda.linux@googlemail.com>
Sun, 6 May 2007 22:51:52 +0000
(22:51 -0000)
procps/kill.c
patch
|
blob
|
history
diff --git
a/procps/kill.c
b/procps/kill.c
index 3ccbd30e440ed73915a8d49667beaef7ebb70577..3e0e121cab8636064e39b14da7226534dd28612f 100644
(file)
--- a/
procps/kill.c
+++ b/
procps/kill.c
@@
-36,7
+36,8
@@
int kill_main(int argc, char **argv)
#else
/* How to determine who we are? find 3rd char from the end:
* kill, killall, killall5
- * ^i ^a ^l */
+ * ^i ^a ^l - it's unique
+ * (checking from the start is complicated by /bin/kill... case) */
const char char3 = argv[0][strlen(argv[0]) - 3];
#define killall (ENABLE_KILLALL && char3 == 'a')
#define killall5 (ENABLE_KILLALL5 && char3 == 'l')