exec系列跟shell没有任何关系, shell是一个程序,exec系列是一些系统API, 引用 4 楼 zxcvbnmasd 的回复:引用 2 楼 hittlle 的回复:exec系列,system, popen exec系列是否也最终调用了shell?至少我看到execl是这样的。
引用 5 楼 guosha 的回复:exec系列跟shell没有任何关系, shell是一个程序,exec系列是一些系统API,引用 4 楼 zxcvbnmasd 的回复:引用 2 楼 hittlle 的回复:exec系列,system, popen exec系列是否也最终调用了shell?至少我看到execl是这样的。 比如我要在某个进程下执行另外一可执行程序,先fork出某子进程,然后在子进程中调用execl(xx),貌似execl的机理是用shell进程代替了fork出的子进程(保留pid),然后shell进程fork出子进程执行要调用的可执行程序。 请高手指点.
引用 2 楼 hittlle 的回复:exec系列,system, popen exec系列是否也最终调用了shell?至少我看到execl是这样的。
exec系列,system, popen
23,116
社区成员
74,506
社区内容
加载中
试试用AI创作助手写篇文章吧