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

Closing programs

infosec.pub

message-square
51
fedilink
339

Closing programs

infosec.pub

cm0002@infosec.pub to Programmer Humor@programming.dev · 9 hours ago
message-square
51
fedilink
  • Vogi@piefed.social
    link
    fedilink
    English
    arrow-up
    48
    ·
    9 hours ago

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

    • 9point6@lemmy.world
      link
      fedilink
      arrow-up
      18
      ·
      7 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
        9
        ·
        4 hours ago
        alias murder="kill -9"
        
      • marcos@lemmy.world
        link
        fedilink
        arrow-up
        8
        ·
        6 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
        ·
        7 hours ago

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

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

      Systemd waits until the services terminate before shutting down

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

      killall -9

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

      How’s that differ from SIGHUP?

      • pivot_root@lemmy.world
        link
        fedilink
        arrow-up
        7
        ·
        8 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
        ·
        6 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.08K users / day
  • 3.98K users / week
  • 7.79K users / month
  • 12.5K users / 6 months
  • 1 local subscriber
  • 28.4K subscribers
  • 834 Posts
  • 10K Comments
  • Modlog
  • mods:
  • adr1an@programming.dev
  • Feyter@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.5
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org