execvp()函数在CLION中工作正常,但在终端中效果不佳
我尝试运行一个程序,该程序使用容器和execvp()函数。
当我试图在CLION中运行时,该程序可以正常工作,但是当我在外壳中运行时,即使我使用Clion的编译文件,它也行不通。 它说:“没有这样的文件或目录”。
有什么想法吗?我使用的论点在两个选项中看起来还不错。
I tried to run an program, which use container and execvp() function.
When I'm trying to run in the CLion, the program works fine, but when I'm running in my shell, it doesn't work, even when I use CLION's compile file.
it says: "no such file or directory".
Any idea? the arguments that I use looks OK in the two options.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
很长一段时间后,我了解问题所在。我使用clone()函数来创建孩子到主过程,并且使用不正确的标志。
After a long time, I understand what was the problem. I used clone() function to create child to the main process, and I used not right flags.