Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • Point 1 begs the question: What happens when the leader terminates and is collected? Can it's process id be reused? Does it hang in a zombie-like state white there are processes in its process group? Do all the processes in its process group get mysteriously killed? (Linux man pages talk about orphaned process groups, but only about what happens if a process in the process group is suspended.) Commented 10 hours ago
  • @DavidG. It cant be reused as theres ref count field in pid struct.until ref count hit zero its not going to be used right?as the pgid members also considered as references? Commented 8 hours ago
  • @Andy Dalton. But still pid cant be used until there are refs to it right?and signals are delevered via shells foreground process group since the rest of the members are still there its doable unless leader is the only process in the group senario? Commented 8 hours ago