scsh-users
[Top] [All Lists]

Re: subprocesses die after SIGCONT?

To: Chad Dougherty <chad@stalphonsos.com>
Subject: Re: subprocesses die after SIGCONT?
From: Martin Gasbichler <gasbichl@informatik.uni-tuebingen.de>
Date: Mon, 10 Jun 2002 10:59:42 +0200
Cc: Chris Beggy <chrisb@kippona.com>, scsh-news@zurich.ai.mit.edu
Sender: gasbichl@informatik.uni-tuebingen.de
>>>>> "Chad" == Chad Dougherty <chad@stalphonsos.com> writes:

Chad> On Mon, Jun 03, 2002 at 11:04:16AM -0400, Chris Beggy wrote:
>> mmc@maruska.dyndns.org (Michal Maru¹ka) writes:
>> 
>> > i run this script:
>> >
>> > #!/usr/bin/scsh -s
>> > !#
>> > ;; test
>> > (display "start test\n")
>> > (run (sleep 5s))
>> > (display "ok\n")
>> >
>> >
>> >
>> >
>> > now i press  C-z  (i'm in zsh), and with "fg" i resume the process. But 
>> > (if SLEEP was
>> > running), the process does not finish.
>> >
>> > Can anybody else see it ?
>> 
>> I see it with bash gnu/linux 2.2.13, scsh-0.6.2.
>> 

Chad> I see it with both zsh-4.0.4 and /bin/sh (which happens to be
Chad> KSH_VERSION='@(#)PD KSH v5.2.14 99/07/13.2') under OpenBSD-3.1.
Chad> I'm using scsh built from the latest CVS sources.

Chad> The weirdest part is that if you stop it, then type fg in a VERY
Chad> short time, it seems to do the right thing.  If you leave it stopped
Chad> for a few whole seconds, then fg it, it just sits there.

After the "fg" scsh receives a SIGCONT and a SIGCHLD within a very
short time. Due to a bug in the VM, the SIGCHLD is dropped and scsh
will continue to wait for its child to terminate. I fixed this in CVS.

Thanks for the reports!

-- 
Martin

<Prev in Thread] Current Thread [Next in Thread>