How to bring an orphaned process to foreground ?
Posted on 2004-05-02
This is the situation I have.
1. Process "p0" forks (started form terminal).
2. Child "exec"s process "p1"
3. Process "p0" terminates leaving child orphaned.
Now p1 need to read keyboard input. But since it is a background process it can not.
How to solve this ?
Maybe I can bring child to foreground or regain control over terminal ?