From: Han Holl Date: 2007-10-04T19:14:51+09:00 Subject: Re: Signal handling strangeness (Linux) On 10/4/07, Bertram Scharpf wrote: > The wait is part of popen. So, `tail' runs until > Process.pid(==$$) terminates and $$ waits for the `tail' to > finish. It's a deadlock but it's the correct behaviour. You > should state a clear definition which task is to be stopped. > You can offer a pid or a kill command by another feature of > your Ruby application. > Yes, but the deadlock isn't there without the trap('TERM'). Cheers, Han Holl