Catching WINCH signal during sleep...

2005-09-19 Thread Andreas Kahari
Hi, I'm running the following simple test script: #!/bin/ksh -x trap 'eval $(resize)' WINCH while true; do sleep 10 done What I'm noticing is that the WINCH signal action is not actually carried out until at the end of the sleep, should the signal be sent during the sleep period. I'm

Re: Catching WINCH signal during sleep...

2005-09-19 Thread Damien Miller
Andreas Kahari wrote: (the WINCH signal is delivered when the terminal window changes size) SIGWINCH is ignored by default, otherwise your sleep(1) would exit if you changed the size of your xterm. See signal(3) for the full list. So it is doing the right thing wrt your quote of SUSv3: The

Re: Catching WINCH signal during sleep...

2005-09-19 Thread Andreas Kahari
On 19/09/05, Damien Miller [EMAIL PROTECTED] wrote: Andreas Kahari wrote: (the WINCH signal is delivered when the terminal window changes size) SIGWINCH is ignored by default, otherwise your sleep(1) would exit if you changed the size of your xterm. See signal(3) for the full list. Ok, so