diff options
-rw-r--r-- | procps/kill.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/procps/kill.c b/procps/kill.c index 3ccbd30e4..3e0e121ca 100644 --- a/procps/kill.c +++ b/procps/kill.c | |||
@@ -36,7 +36,8 @@ int kill_main(int argc, char **argv) | |||
36 | #else | 36 | #else |
37 | /* How to determine who we are? find 3rd char from the end: | 37 | /* How to determine who we are? find 3rd char from the end: |
38 | * kill, killall, killall5 | 38 | * kill, killall, killall5 |
39 | * ^i ^a ^l */ | 39 | * ^i ^a ^l - it's unique |
40 | * (checking from the start is complicated by /bin/kill... case) */ | ||
40 | const char char3 = argv[0][strlen(argv[0]) - 3]; | 41 | const char char3 = argv[0][strlen(argv[0]) - 3]; |
41 | #define killall (ENABLE_KILLALL && char3 == 'a') | 42 | #define killall (ENABLE_KILLALL && char3 == 'a') |
42 | #define killall5 (ENABLE_KILLALL5 && char3 == 'l') | 43 | #define killall5 (ENABLE_KILLALL5 && char3 == 'l') |