KW Region Lemmy
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
cm0002@infosec.pub to Programmer Humor@programming.dev · 12 hours ago

Closing programs

infosec.pub

message-square
77
link
fedilink
354

Closing programs

infosec.pub

cm0002@infosec.pub to Programmer Humor@programming.dev · 12 hours ago
message-square
77
link
fedilink
  • Vogi@piefed.social
    link
    fedilink
    English
    arrow-up
    52
    ·
    11 hours ago

    Isn’t that what SIGTERM is? A request to gracefully shutdown processes.

    • [object Object]@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      3 hours ago

      I bet the GUI environments also have their own mechanisms to indicate that the app needs to close, before whipping out the signals.

    • 9point6@lemmy.world
      link
      fedilink
      arrow-up
      20
      ·
      10 hours ago

      kill, and I swear to god if you’re still there when I ps, I’m getting out the -9

      • 6️⃣9️⃣4️⃣2️⃣0️⃣@lemmy.world
        link
        fedilink
        English
        arrow-up
        12
        ·
        6 hours ago
        alias murder="kill -9"
        
      • marcos@lemmy.world
        link
        fedilink
        arrow-up
        9
        ·
        9 hours ago

        Yeah, by default kill sends sigterm, and not kill the process at all.

        It’s the correct behavior, sending sigkill by default would be harmful. Now take a look at how killall worked in Solaris (before it adopted GNU).

      • toynbee@lemmy.world
        link
        fedilink
        arrow-up
        3
        ·
        10 hours ago

        https://youtube.com/watch?v=Fow7iUaKrq4

        • 9point6@lemmy.world
          link
          fedilink
          arrow-up
          1
          ·
          41 minutes ago

          Okay that took me by surprise

          I’ll be sharing this

    • pewpew@feddit.it
      link
      fedilink
      arrow-up
      12
      ·
      11 hours ago

      Systemd waits until the services terminate before shutting down

    • andyburke@fedia.io
      link
      fedilink
      arrow-up
      8
      ·
      11 hours ago

      killall -9

    • cannedtuna@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      11 hours ago

      How’s that differ from SIGHUP?

      • pivot_root@lemmy.world
        link
        fedilink
        arrow-up
        8
        ·
        11 hours ago

        Historical context, delivery, and handling.

        HUP—hang up—is sent to indicate the TTY is closed.
        TERM—terminate— is sent by request.

        What happens when received is usually up to the process. Most of them just leave the defaults, which is to exit.

      • Ethan@programming.dev
        link
        fedilink
        English
        arrow-up
        2
        ·
        9 hours ago

        They’re different signals. The default handling is the same - terminate - but they’re triggered by different things and (if the process handles them) handled by separate handlers.

Programmer Humor@programming.dev

programmer_humor@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: !programmer_humor@programming.dev

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
Visibility: Public
globe

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

  • 2.27K users / day
  • 4.26K users / week
  • 7.83K users / month
  • 18K users / 6 months
  • 1 local subscriber
  • 28.4K subscribers
  • 1.19K Posts
  • 24.9K Comments
  • Modlog
  • mods:
  • adr1an@programming.dev
  • Feyter@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.15
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org