β² 370 βΌ Linux: I'm not asking (files.catbox.moe) submitted 2 years ago by shimdidly@lemmy.world to c/linuxmemes@lemmy.world 42 comments fedilink hide all child comments
[β] Fillicia@sh.itjust.works 42 points 2 years ago (2 children) To be fair, even in Linux it's really hard to kill a zombie process. You have to tell the parent to own up to their kid, and then kill the parent. permalink fedilink source parent hideshow 4 child comments replies: [β] palordrolap@fedia.io 12 points 2 years ago You can try asking a process to round up its dead children, but unlike the quit signals, the number varies by platform. For most Linux users it's -17, but using the text version -CHLD is probably a better choice (unless you're on a really old system that absolutely has to have a number, in which case check the local documentation.) If it's a well-behaved process, that can do away with the need to kill it. In other cases, there might be some kind of restart mechanism built in that can be called instead - assuming sending it a SIGCHLD doesn't trigger that behaviour anyway. Case in point, the Cinnamon DE has at least a couple of ways to restart it, and at least one of those gets rid of its zombie child processes. It's fairly rare that I need to do that, and I haven't tried sending it a -17. I might do at some point. permalink fedilink source parent [β] cley_faye@lemmy.world 3 points 2 years ago "Stalled I/O" has entered the process list :D permalink fedilink source parent
[β] palordrolap@fedia.io 12 points 2 years ago You can try asking a process to round up its dead children, but unlike the quit signals, the number varies by platform. For most Linux users it's -17, but using the text version -CHLD is probably a better choice (unless you're on a really old system that absolutely has to have a number, in which case check the local documentation.) If it's a well-behaved process, that can do away with the need to kill it. In other cases, there might be some kind of restart mechanism built in that can be called instead - assuming sending it a SIGCHLD doesn't trigger that behaviour anyway. Case in point, the Cinnamon DE has at least a couple of ways to restart it, and at least one of those gets rid of its zombie child processes. It's fairly rare that I need to do that, and I haven't tried sending it a -17. I might do at some point. permalink fedilink source parent
[β] cley_faye@lemmy.world 3 points 2 years ago "Stalled I/O" has entered the process list :D permalink fedilink source parent