mirror of
https://github.com/sheumann/hush.git
synced 2025-01-17 16:30:26 +00:00
kill: improve comment
This commit is contained in:
parent
02f47e9f81
commit
0cacc80952
@ -36,7 +36,8 @@ int kill_main(int argc, char **argv)
|
|||||||
#else
|
#else
|
||||||
/* How to determine who we are? find 3rd char from the end:
|
/* How to determine who we are? find 3rd char from the end:
|
||||||
* kill, killall, killall5
|
* 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];
|
const char char3 = argv[0][strlen(argv[0]) - 3];
|
||||||
#define killall (ENABLE_KILLALL && char3 == 'a')
|
#define killall (ENABLE_KILLALL && char3 == 'a')
|
||||||
#define killall5 (ENABLE_KILLALL5 && char3 == 'l')
|
#define killall5 (ENABLE_KILLALL5 && char3 == 'l')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user