Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
orhun12535y@netikras zps checks '/proc/<pid>/stat' file for indicating zombies. So I'm not dealing with exit codes at all.
-
@orhun No.
zps utility is there to do 2 things:
1) find and list all the zombies;
2) clear them from the process table.
zps already does #1 as far as I see from the code. I do not see it doing #2 yet. How do you propose should it be done? -
@orhun My bad.. it already does #2. Did not see that part in my phone screen. My appologies
if(!kill(defunctProcs[i].ppid, SIGTERM)) {
My GOD! So does it mean it will kill mi `init` process? Am I reading this right? -
orhun12535y@netikras Yes, at least for now. I'll change this signal to SIGCHLD but I have to add an extra check for it if I do this.
-
orhun12535yOh, and one more thing.
It CAN kill your init process but I don't think it will happen. Seems not possible.
zps: A small utility for listing and reaping zombie processes on GNU/Linux.
zps: A small utility for listing and reaping zombie processes on GNU/Linux.