in reply to Re^4: Stopped child hangs parent
in thread Stopped child hangs parent
Unless there is something else anyone can think of...
If the issue is that the terminal is sending SIGTTOU stopping the process when it's trying to write to the terminal from the background (as indicated by ig), you could try stty -tostop to disable that behavior (most terminals allow it to be controlled):
$ stty tostop $ echo foo & [1] 7746 [1]+ Stopped echo foo $ stty -tostop $ echo foo & foo [2] 7748 [2]- Done echo foo
As you can see, in the first case, the background process is being stopped (via SIGTTOU), while in the latter case, the process is allowed to output "foo" (as if being run in the foreground), and the process can terminate normally.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Stopped child hangs parent
by jafoba (Novice) on Aug 12, 2009 at 19:46 UTC |