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

> This does not change the fact that whether a system() function implementation uses or does not use fork and exec is neither specified by the function definition nor relevant for the user

I agree that it isn't specified, but it can be relevant for the user, depending on what the user is doing.

> in any case system() is not the function that should be used when the intention is to simplify some code that otherwise would invoke fork and exec

Which was my original point. system doesn't save you from the problems of fork/exec, because depending on the system, it might be using fork/exec anyway, and adds additional limitations and caveats on top.



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

Search: