Next | System Programming in Perl | 12 |
Entry #1 in a process's open file table is where the standard output goes
On fork, the new process gets a copy of the open file table
On exec, the open file table is unchanged
Result: When ls writes to its standard output, the output appears on the terminal
Next | 12 |