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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly