Understanding Killall command , wait option

:wall:

killall -w

Hi
i need to understand how the -w option works in terms of processes.
If this command is issued does it literally terminate all running processes ..wait for them all to be terminated and then return to standard output ?

Thanks in advance

From man page

-w, --wait
       Wait  for  all  killed  processes to die. killall checks once per second if any of the killed processes still exist and only returns if none are
       left.  Note that killall may wait forever if the signal was ignored, had no effect, or if the process stays in zombie state.
1 Like

Also, keep in mind that killall has a slightly different and far more literal meaning on other UNIX.

1 Like