zsh-users
 help / color / mirror / code / Atom feed
* kill % fails?
@ 2021-11-26 18:20 Dominik Vogt
  2021-11-27 20:28 ` Bart Schaefer
  0 siblings, 1 reply; 6+ messages in thread
From: Dominik Vogt @ 2021-11-26 18:20 UTC (permalink / raw)
  To: Zsh Users

Why does this not kill all processes?

 $ killall xeyes
 $ pstree | grep xeyes
 # no xeyes running
 $ for i in $(seq 1000); do xeyes & sleep 0.01; kill %; done
 zsh: job table full
 [2]    terminated  xeyes
 [3]    terminated  xeyes
 ...
 [996]    terminated  xeyes
 [997]  - terminated  xeyes
 $ pstree | grep xeyes
        |                          `-xeyes(28266)     <----- not killed?
 $ killall xeyes
 $ pstree | grep xeyes
 [998]  + terminated  xeyes

Okay, I understand that bit about the full job table, but why is
the last process not killed?

Note: The 0.01 second sleep is just long enough so that xeyes
tries to create a window on my system.

Warning: If not running fvwm as a window manager, you wm may well
go crazy, crash or become busy for a long time.  Better save your
work first.

Ciao

Dominik ^_^  ^_^

--

Dominik Vogt


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-11-28 20:12 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-26 18:20 kill % fails? Dominik Vogt
2021-11-27 20:28 ` Bart Schaefer
2021-11-28  1:31   ` Dominik Vogt
2021-11-28  2:15     ` Bart Schaefer
2021-11-28  9:49       ` Dominik Vogt
2021-11-28 20:10         ` Bart Schaefer

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).