scsh-users
[Top] [All Lists]

Re: help about hanging when run

To: ZHAO Wei <zhaoway@public1.ptt.js.cn>
Subject: Re: help about hanging when run
From: Martin Gasbichler <gasbichl@informatik.uni-tuebingen.de>
Date: Tue, 04 Nov 2003 10:31:31 +0100
Cc: scsh@zurich.csail.mit.edu
ZHAO Wei <zhaoway@public1.ptt.js.cn> writes:

> Hi!
>
> I have a little script < 100 lines of code. There I spawn a thread
> every awhile. In the thread I call a (run ...). I have put (display
> ...) before and after the (run ...) for debugging purpose.
>
> The first time a thread being spawned, everything is O.K. The (run
> ...) is being run and (I think) the thread exitted as expected.
>
> Then after awhile, the second thread is spawned, the after the first
> (display ...), the program hang. Never can I see the second (display
> ...).
>
> Is there any clue so I can debug it or any gotcha's I should notice?

Are you sure the program you stared with terminates? Adding a newline
to the debugging message or displaying it to (current-error-port) also
helps forcing output.



--
Martin

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