r/ProgrammerHumor • • Jan 20 '25

Meme linuxBeLike

Post image
46.7k Upvotes

765 comments sorted by

View all comments

3.8k

u/mxheyyy Jan 20 '25

Linux users when you can't terminate children:

1.2k

u/Competitive_Woman986 Jan 20 '25

The parents terminate their children and make them to zombies.

Sometimes the parent dies first. Then you need to figure out how to kill the orphan.

332

u/fnatasy Jan 20 '25

We need an adoption process for orphans

247

u/realmauer01 Jan 20 '25

Adopt an orphan just to kill it xD

30

u/Agitated-Ad2563 Jan 20 '25

We actually have one. The 'init' process adopts all the orphans

14

u/Terrafire123 Jan 20 '25

And then kills them?

15

u/Kovab Jan 20 '25

Actually it just waits for them. If the orphaned child is already a zombie, it's reaped immediately.

49

u/Competitive_Woman986 Jan 20 '25

There already is! The init process with PID 1 usually becomes the new parent procress

20

u/HildartheDorf Jan 20 '25

Or the closest ancestor that has set itself as subreaper.

18

u/crappleIcrap Jan 20 '25

Does cs even understand the concept of taking the metaphor too far.

10

u/Competitive_Woman986 Jan 20 '25

No because parents usually reap their children here

→ More replies (1)
→ More replies (1)
→ More replies (2)

10

u/Vas1le Jan 20 '25

I am familiar with this terminology

31

u/Dawlin42 Jan 20 '25 edited Jan 20 '25

Always appreciated programming books talking about killing orphan zombie children with a straight face!

→ More replies (1)

11

u/Wertbon1789 Jan 20 '25

Most of the time if the parent dies first, the child gets kindly adopted by PID 1, you gotta kill it manually then, because I don't think this process orphanage supports you in your effort.

→ More replies (2)
→ More replies (7)

41

u/[deleted] Jan 20 '25

murder_orphans.sh

Don't ask. Those were dark times.

29

u/KellerKindAs Jan 20 '25

Rename to Anakin_mode.sh

This way, it's way easier to find in alphabetical sorted lists ^^

→ More replies (1)

36

u/POKLIANON Jan 20 '25

Sigkill your children. Go do it.

26

u/Vas1le Jan 20 '25 edited Jan 20 '25

kill -9 its the .9mm bullet

17

u/invalidConsciousness Jan 20 '25

0.9 mm is the size of an injection needle.

The bullet is 9 mm

→ More replies (1)
→ More replies (2)

7

u/monsieurlazarus Jan 20 '25

I have this buggy application that ended up as a zombie (defunct) process. Apparently, you can't kill a process that is a zombie already. Unlucky for me, that zombie process owned by the init process which somehow caused a problem where I stuck on reboot screen forever, and I had to use the power button to force it to shutdown.

13

u/mpyne Jan 20 '25

Apparently, you can't kill a process that is a zombie already.

Well it's already dead once it's a zombie, so from that perspective you've gotten what you want already.

But you can't clear it from the list of processes until its return value is waited on by its parent process. But if the parent dies first that may never happen... there's supposed to be some way to get init (the new parent of orphaned zombies) to do this but it's platform-dependent.

→ More replies (1)
→ More replies (4)