在 UNIX 中的高级编程中,第 9.10 节
"The POSIX.1 definition of an orphaned process group is one in which the
parent of every member is either itself a member of the group or is not
a member of the group's session. Another way of wording this is that the
process group is not orphaned as long as a process in the group has a
parent in a different process group but in the same session. "
它还说:
“如果进程组不是孤立的,则有可能在不同的进程组中但在同一会话中的那些父进程中的一个将重新启动非孤立进程组中停止的进程。”
因此,如果进程组是孤立的:
1)子进程与其父进程在同一个进程组中
2)子进程及其父进程在不同会话的不同进程组中
我想知道当子进程在上述两种情况下停止时,父进程是否没有机会重新启动其子进程。
谢谢