fuser: code shrink, fixing default signal, exitcode and PID display
Defult signal is KILL, not TERM. We used to not display PIDs with -k but without -s, but upstream (fuser from PSmisc 22.7) still shows PIDs. Filtering out of our own PID was buggy. function old new delta fuser_main 669 918 +249 search_dev_inode 67 74 +7 add_pid 38 39 +1 scan_pid_maps 225 222 -3 add_inode 91 88 -3 packed_usage 27047 27039 -8 scan_dir_links 102 76 -26 scan_link 78 46 -32 file_to_dev_inode 64 - -64 scan_proc_net 307 - -307 ------------------------------------------------------------------------------ (add/remove: 0/2 grow/shrink: 3/5 up/down: 257/-443) Total: -186 bytes Signed-off-by: Maksym Kryzhanovskyy <xmaks@email.cz> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
committed by
Denys Vlasenko
parent
8391c4800c
commit
fef9ee7072
@@ -1474,9 +1474,9 @@
|
||||
"\n -m Find processes which use same fs as FILEs" \
|
||||
"\n -4 Search only IPv4 space" \
|
||||
"\n -6 Search only IPv6 space" \
|
||||
"\n -s Silent: just exit with 0 if any processes are found" \
|
||||
"\n -k Kill found processes (otherwise display PIDs)" \
|
||||
"\n -SIGNAL Signal to send (default: TERM)" \
|
||||
"\n -s Don't display PIDs" \
|
||||
"\n -k Kill found processes" \
|
||||
"\n -SIGNAL Signal to send (default: KILL)" \
|
||||
|
||||
#define getenforce_trivial_usage NOUSAGE_STR
|
||||
#define getenforce_full_usage ""
|
||||
|
||||
Reference in New Issue
Block a user