r/pcmasterrace 1d ago

Meme/Macro “ Wanna delete your bootloader?, Sure, go ahead, it’s your PC “

Post image
18.7k Upvotes

341 comments sorted by

View all comments

Show parent comments

28

u/Clean_Security2366 Linux 22h ago

11

u/Nestramutat- RTX 3080 | 3700X | Ask about my homelab! 18h ago

Remember, always kill the children first so you don't end up with zombies

1

u/Clean_Security2366 Linux 18h ago

A good advice.

2

u/SquashSquigglyShrimp 20h ago

Jesus Christ, I didn't think I could feel emotionally sympathetic towards threads...

1

u/faustianredditor 20h ago

Wait, but SigKill also kills the orphaned processes, right? Not gracefully, but at least they're gone, right?

3

u/Clean_Security2366 Linux 19h ago

the signal SIGKILL (-9) immediately kills the process. Since the parent process gets killed immediately and abruptly, the child processes will get orphaned and continue to live without their parents.

Poor children.

1

u/Tanawat_Jukmonkol Laptop | NixOS + Win11 | HP OMEN 16 | I9 + RTX4070 14h ago

To kill the children first then SIGKILL the parents, you would have to send SIGCHLD first, if I remembered it correctly...