falsefriends
parent
dfb0da1a96
commit
f15a95255f
|
@ -8,4 +8,4 @@ an empty string in `$PATH` is equivalent to `.`, so prepending `:` to your PATH,
|
|||
|
||||
killall -1
|
||||
--
|
||||
in `killall` tha parameter `-1` is - differnently to `kill` NOT interpreted as signal, but is a special variable for "applies to everything except PID1 and kill itself". Therefore no signal is given, and the default one (15, SIGTERM) will be applied to each and every PID (but is then usually reduced again to the searchterm given). So `killall -1 java` does in pseudocode effectively: `where name is java; do [ ! PID == 1 ] && kill -s 15 $name; done` ...very dangerous
|
||||
in `killall` the parameter `-1` is - differnently to `kill` NOT interpreted as signal, but is a special variable for "applies to everything except PID1 and self". Therefore no signal is given, and the default one (15, SIGTERM) will be applied to each and every PID (but is then usually reduced again to the searchterm given). So `killall -1 java` does in pseudocode effectively: `where name is java; do [ ! PID == 1 ] && kill -s 15 $name; done` ...very dangerous
|
||||
|
|
Loading…
Reference in New Issue