this post was submitted on 23 Apr 2026
29 points (87.2% liked)

Linux

14021 readers
309 users here now

A community for everything relating to the GNU/Linux operating system (except the memes!)

Also, check out:

Original icon base courtesy of lewing@isc.tamu.edu and The GIMP

founded 3 years ago
MODERATORS
 

Video: https://youtu.be/6VH_aDNF6JU

Source Code → github.com/bahamas10/ysap/tree/main/code/2026-04-22-zombie-process

Explanation of what a zombie process in Linux is, how to create one and what happens if there is one.

top 13 comments
sorted by: hot top controversial new old
[–] shrek_is_love@lemmy.ml 8 points 1 month ago (2 children)

All they wanna do is east your brains. They're not unreasonable; I mean no one's gonna eat your eyes.

[–] ThePunnyMan@lemmy.zip 4 points 1 month ago (3 children)

All they wanna do is eat your brains. We're at an impasse here. Maybe we should compromise.

[–] hallettj@leminal.space 1 points 1 month ago

Just open up the door. We'll all come inside, and eat your braaains!

[–] med@sh.itjust.works 1 points 1 month ago

If you open up the door, we'll all come inside and eat your brains!

[–] Neptr@lemmy.blahaj.zone 1 points 1 month ago

The eye develop from brain tissue, so I wouldn't be so sure ...

[–] peterhorvath@mastodon.de 4 points 1 month ago (2 children)

@thingsiplay Stop their parent process and the zombie will go under init, then init will stop them.

[–] thingsiplay@lemmy.ml 3 points 1 month ago (2 children)

That's what the video explains as well. Killing the parents will make init adopt and kill the children in the process. Problem is, that you might not want to stop / kill the parent process, depending on what you are doing. One should be very careful of doing so.

[–] peterhorvath@mastodon.de 3 points 1 month ago

@thingsiplay Sorry you might right! In this case, I would debug the parent process and I would execute the wait() syscalls in its name, but it is hardly autimatizable and probably many people can not do that. Thanks the info!

[–] peterhorvath@mastodon.de 1 points 1 month ago

@thingsiplay Yes, you are right. I think you could trace the parent, by a gdb, and then execute a wait() in its name.

[–] who@feddit.org 1 points 1 month ago

To be clear, merely stopping the parent (SIGSTOP) will not do the job. You have to kill or otherwise end it.

[–] possiblylinux127@lemmy.zip 2 points 1 month ago (1 children)

You could just avoid killing processes

[–] thingsiplay@lemmy.ml 1 points 1 month ago

But where is the fun then? ;p On a more serous note, yes I agree. In most cases (probably all cases) there should be no need to get rid of zombie processes.