|
|
|
|
|
by vletrmx
3087 days ago
|
|
What happens if you want the child to inherit other fds?
Or set other attributes such as the session, euid, egid etc? The elegance of fork() is in avoiding the complexity of requiring every attribute of the process to be explicitly stated in order to create a new process. We simply inherit our parent's attributes and if that turns out not be desirable it is fixed in the child with the usual syscalls. EDIT: s/And/Or set/ |
|