this post was submitted on 01 Sep 2024
370 points (95.3% liked)

linuxmemes

21172 readers
912 users here now

Hint: :q!


Sister communities:


Community rules (click to expand)

1. Follow the site-wide rules

2. Be civil
  • Understand the difference between a joke and an insult.
  • Do not harrass or attack members of the community for any reason.
  • Leave remarks of "peasantry" to the PCMR community. If you dislike an OS/service/application, attack the thing you dislike, not the individuals who use it. Some people may not have a choice.
  • Bigotry will not be tolerated.
  • These rules are somewhat loosened when the subject is a public figure. Still, do not attack their person or incite harrassment.
  • 3. Post Linux-related content
  • Including Unix and BSD.
  • Non-Linux content is acceptable as long as it makes a reference to Linux. For example, the poorly made mockery of sudo in Windows.
  • No porn. Even if you watch it on a Linux machine.
  • 4. No recent reposts
  • Everybody uses Arch btw, can't quit Vim, and wants to interject for a moment. You can stop now.

  • Please report posts and comments that break these rules!

    founded 1 year ago
    MODERATORS
    you are viewing a single comment's thread
    view the rest of the comments
    [–] palordrolap@fedia.io 99 points 2 months ago (2 children)

    Linux has at least four levels of decreasing pleasantry: -1, -2, -15, and -9, aka HangUP, INTerrupt, TERMinate and KILL or "Please stop", "Hey! Quit it!", "Stop it! NOW!" and *loud gunshot*.

    Sometimes processes will clean up after themselves and leave when asked nicely. Or sternly told off. Of course, if you don't need or want that, load up your, uh, -9 shooter.

    [–] Fillicia@sh.itjust.works 42 points 2 months ago (2 children)

    To be fair, even in Linux it's really hard to kill a zombie process. You have to tell the parent to own up to their kid, and then kill the parent.

    [–] palordrolap@fedia.io 12 points 2 months ago

    You can try asking a process to round up its dead children, but unlike the quit signals, the number varies by platform. For most Linux users it's -17, but using the text version -CHLD is probably a better choice (unless you're on a really old system that absolutely has to have a number, in which case check the local documentation.)

    If it's a well-behaved process, that can do away with the need to kill it. In other cases, there might be some kind of restart mechanism built in that can be called instead - assuming sending it a SIGCHLD doesn't trigger that behaviour anyway.

    Case in point, the Cinnamon DE has at least a couple of ways to restart it, and at least one of those gets rid of its zombie child processes. It's fairly rare that I need to do that, and I haven't tried sending it a -17. I might do at some point.

    [–] cley_faye@lemmy.world 3 points 2 months ago

    "Stalled I/O" has entered the process list :D

    [–] JackGreenEarth@lemm.ee 14 points 2 months ago (1 children)

    Why did I hear Viva La Dirt League in your

    "Please stop", "Hey! Quit it!"

    I totally read that in Adam's voice

    [–] palordrolap@fedia.io 2 points 2 months ago

    I think I've seen a couple of their videos, and have no idea which of them Adam would be (can't even call any faces to mind right now to be fair), so I'm pretty sure those phrases are in my head from elsewhere.

    The "Please stop" is pretty generic, but got a lot of traction that time Hyperbole and a Half told a story involving it. "Hey! Quit it!" is probably Lisa or Bart from some episode of The Simpsons. "Stop it! NOW!" is probably something that was actually said to me at some point as a kid.

    Never got shot though, so I must have started behaving at that point.

    (For legal reasons, that last part is meant to be tongue-in-cheek. I am also using "for legal reasons" mostly humorously. Mostly.)