Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Show me an API that can do that without fork.

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



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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: