Crony's Dungeon
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
thingsiplay@lemmy.ml to Linux@programming.dev · 4 days ago

You Can’t Kill Zombie Processes - Here's Why (defunct processes) by You Suck at Programming [14:32 mins] on Apr 22, 2026

youtu.be

external-link
message-square
12
link
fedilink
23
external-link

You Can’t Kill Zombie Processes - Here's Why (defunct processes) by You Suck at Programming [14:32 mins] on Apr 22, 2026

youtu.be

thingsiplay@lemmy.ml to Linux@programming.dev · 4 days ago
message-square
12
link
fedilink
- YouTube
youtu.be
external-link
Auf YouTube findest du die angesagtesten Videos und Tracks. Außerdem kannst du eigene Inhalte hochladen und mit Freunden oder gleich der ganzen Welt teilen.

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.

alert-triangle
You must log in or # to comment.
  • shrek_is_love@lemmy.ml
    link
    fedilink
    arrow-up
    8
    ·
    4 days ago

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

    • ThePunnyMan@lemmy.zip
      link
      fedilink
      arrow-up
      4
      ·
      3 days ago

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

      • hallettj@leminal.space
        link
        fedilink
        English
        arrow-up
        1
        ·
        3 days ago

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

      • med@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        1
        ·
        3 days ago

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

      • bishop@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        3 days ago

    • N.E.P.T.R@lemmy.blahaj.zone
      link
      fedilink
      English
      arrow-up
      1
      ·
      3 days ago

      The eye develop from brain tissue, so I wouldn’t be so sure …

  • Possibly linux@lemmy.zip
    link
    fedilink
    English
    arrow-up
    2
    ·
    3 days ago

    You could just avoid killing processes

    • thingsiplay@lemmy.mlOP
      link
      fedilink
      arrow-up
      1
      ·
      3 days 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.

  • Peter Horvath@mastodon.de
    link
    fedilink
    arrow-up
    2
    ·
    4 days ago

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

    • thingsiplay@lemmy.mlOP
      link
      fedilink
      arrow-up
      2
      ·
      3 days ago

      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.

      • Peter Horvath@mastodon.de
        link
        fedilink
        arrow-up
        1
        ·
        2 days ago

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

      • Peter Horvath@mastodon.de
        link
        fedilink
        arrow-up
        2
        ·
        3 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!

Linux@programming.dev

linux@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !linux@programming.dev

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

Also, check out:

  • !linux_memes@programming.dev
  • !linuxphones@lemmy.ca
  • our Matrix group chat
  • !reactos@programming.dev

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

Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 312 users / day
  • 1.32K users / week
  • 4.05K users / month
  • 9.6K users / 6 months
  • 1 local subscriber
  • 13.4K subscribers
  • 4.37K Posts
  • 28.9K Comments
  • Modlog
  • mods:
  • Ategon@programming.dev
  • adr1an@programming.dev
  • dwraf_of_ignorance@programming.dev
  • BE: 0.19.13
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org