Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以启动一个进程exec并让该进程在后台运行,并且(不像System()),kill一旦将中断信号传递给创建它的父进程,该进程是否会被编辑?
exec
System()
kill
Yeah. Ignoring SIGINT is a behavior specific to system(). If you roll your own system() using fork() and execl(), you won't get that.
Of course, unless you're really careful you're going to make zombies.