开发者

How is system() function of stdlib.h file implemented in linux? [duplicate]

开发者 https://www.devze.com 2023-02-17 05:01 出处:网络
This question already has answers here: 开发者_运维知识库 Closed 11 years ago. Possible Duplicate:
This question already has answers here: 开发者_运维知识库 Closed 11 years ago.

Possible Duplicate:

How does system() exactly work in linux?

For the sake of my curiosity, I want to know that how does system() function spawn the process and its internal implemenation ? Is is using fork , exec internally ?


On my Debian box it uses clone() that itself calls sys_clone(). You can use strace to look at system calls.

0

精彩评论

暂无评论...
验证码 换一张
取 消