Lecture 4: Process Creation and Control Flashcards
1
Q
Why are fork() and exec() separate?
A
the separation allows the parent to “fix-up” file descriptors after fork() but before exec() allow the parent to redirect the input and output of the new process