- The process running
foois created. - The process inherits stdin, stdout, and stderr from the shell. Therefore it is also connected to the same terminal.
- If the shell receives a
SIGHUP, it also sends aSIGHUPto the process (which normally causes the process to terminate). - Otherwise the shell waits (is blocked) until the process terminates or gets stopped.
Minor grammar tweak/correction.
fixed grammar, clarified what happens if a background process tries to read from stdin
Jayen
- 211
- 1
- 11
Copy edited. Removed meta information (this belongs in comments).