Next | Unix Command Internals | 9 |
One thing that each process has is an open file table
Entry #1 in this 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 ps write to its standard output, the output appears on the terminal
Next | Copyright © 2002 M. J. Dominus |