|
|
|
|
|
by asveikau
5 days ago
|
|
The things you can do between fork and exec are sometimes underestimated. Off the top of my head, you can call dup2(), you can set a process group id, probably a few other things. If you contrast that with win32, where you optionally pack a bunch of initial values into a struct, win32 is a much more narrow, less pleasant, less freeform interface, where it is harder to introduce more features. But I think there is already posix_spawn to imitate that philosophy on Unix-like OSs. |
|