2

是否可以启动一个进程exec并让该进程在后台运行,并且(不像System()),kill一旦将中断信号传递给创建它的父进程,该进程是否会被编辑?

4

1 回答 1

1

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.

于 2009-02-24T14:48:52.697 回答