this post was submitted on 23 Apr 2026
11 points (100.0% liked)

Linux

13424 readers
825 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 2 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.

you are viewing a single comment's thread
view the rest of the comments
[–] peterhorvath@mastodon.de 2 points 4 days ago (4 children)

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

[–] thingsiplay@lemmy.ml 1 points 4 days 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 1 points 4 days 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!

load more comments (1 replies)
load more comments (2 replies)