News for hackers. Stuff that matters.
Re:Ask HN - Why was there ever, fork() ? by billpg on Tuesday October 06, 2009 @01:10PM (#864621)
> Show me an API that can do that without fork.

http://msdn.microsoft.com/en-us/library/ms682429%28VS.85%29....

Re:Ask HN - Why was there ever, fork() ? by caf on Tuesday October 06, 2009 @05:29PM (#865344)
Exactly the point - that call takes 11 parameters, many of which are complex structures themselves. Compare that to:

pid_t fork(void); int execve(const char filename, char const argv[], char *const envp[]);

The idea is to have several simpler system calls that you can wire together to get the complex effect you need, rather than trying to build an ultimate CreateProcess function that can handle any case of infinite complexity.