b***y 发帖数: 2799 | 1 ☆─────────────────────────────────────☆
maplesea (maple) 于 (Wed Sep 28 02:54:22 2005) 提到:
没学过操作系统, 向大侠请教:
我在改一段程序, 想要在某种情况下 kill 掉一个 process and all its child process
. The child processes are spawned using fork() and wait(), I set each leading
process as leader using setgrp() and try to signal handler SIGTERM to kill
all the processes. My problem is, each time the process leader is killed by
group kill routine killpg(), its children will become orphan. I know there
must be some signal got |
|