Comment 2 for bug 1169510

Revision history for this message
Javier Collado (javier.collado) wrote :

After some testing, the behavior I've seen confirms the following python bug:
http://bugs.python.org/issue9504

What this bug says is that if a command if being executed through a subprocess,
the signal handler isn't called until the subprocess returns.

What happened in this specific instance of the problem is that the utah client
was being executed through ssh and the signal was already triggered, but the
handler wasn't called.

I've attached a sample script to reproduce the problem. When `signal.alarm` is
used, the handler isn't called until the ssh command is done. However if the
timeout is set using `channel.settimeout` a `socket.timeout` exeception is
raised at the expected time.