Quote:
Originally Posted by henryyao
I ran a qt process backgroundly on my embedded linux, in this qt program, it will fork a foreground child process. And it seems to cause trouble unless i made this child process background.
|
There is no difference between a foreground vs background process. What happens is the tty input is blocked when something is put in the background and another process is started in the foreground. Once the terminal is blocked, there is nothing that can be done in the background to recover it.
The designation of "background" is just that the shell doesn't wait for it to exit before going to the next prompt - and that tends to block the input, causing the "background" process to wait when it tries to read from stdin.
Quote:
What's the schemetic behind that?
Thanks
|
Don't do that.