On 2017-04-25 13:15:52 +0200, Vincent Lefevre wrote:
> The problem can often be reproduced with something like:
>
> for i in `seq 200`; do xterm -geometry 80x24+0+0 -e true & done
>
> There may remain several windows. When I do an ident on one of them,
> all of them disappear.
Here's a script, that will also detect termination (it works with ksh
and zsh, but not with dash and bash, which seem to have broken signal
handling):
------------------------------------------------------------------------
#!/bin/ksh
n=${1:-200}
n=$((n+0))
c=0
trap 'c=$((c+1))' CHLD
for i in `seq $n`; do xterm -geometry 80x24+$((2*i))+$((2*i)) -e true & done
while [ $c != $n ]; do sleep 1; done
------------------------------------------------------------------------
This can also trigger the bug with the default fvwm configuration
in Debian, but less often than mine. So, you may need to run this
script several times.
--
Vincent Lefèvre <[email protected]> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)