Dendarii
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
bleistift2@sopuli.xyz to Programmer Humor@programming.devEnglish · 4 months ago

Thinking I could clean up my files in a SIGINT handler

sopuli.xyz

external-link
message-square
44
fedilink
369
external-link

Thinking I could clean up my files in a SIGINT handler

sopuli.xyz

bleistift2@sopuli.xyz to Programmer Humor@programming.devEnglish · 4 months ago
message-square
44
fedilink
  • deadcream@sopuli.xyz
    link
    fedilink
    arrow-up
    76
    arrow-down
    4
    ·
    4 months ago

    That’s why you launch them through systemd.

    • ikidd@lemmy.world
      link
      fedilink
      English
      arrow-up
      73
      arrow-down
      5
      ·
      4 months ago

      But systemd is the devil and makes nothing better, right?

      Right?

      • DreamButt@lemmy.world
        link
        fedilink
        English
        arrow-up
        18
        ·
        4 months ago

        Really? I’ve never had issue with it

        • qaz@lemmy.world
          link
          fedilink
          English
          arrow-up
          34
          ·
          4 months ago

          It’s a joke about the criticism systemd gets

      • desktop_user@lemmy.blahaj.zone
        link
        fedilink
        arrow-up
        8
        arrow-down
        1
        ·
        4 months ago

        openrc exists

        • introvertcatto@lemmy.blahaj.zone
          link
          fedilink
          English
          arrow-up
          24
          ·
          4 months ago

          Openrc is bloat, you should manually pair electrons

    • bleistift2@sopuli.xyzOP
      link
      fedilink
      English
      arrow-up
      8
      ·
      4 months ago

      The constant nagging by you systemd people worked. I’ve written a unit that does what I need it to do. That was more annoying than I think it needed to be, but well… my solution didn’t work at all.

      • deadcream@sopuli.xyz
        link
        fedilink
        arrow-up
        5
        ·
        4 months ago

        AFAIK kernel itself doesn’t send any signals to processes on shutdown/reboot, it just stops executing them. This is a job service manager (e.g. systemd) that terminates processes using SIGTERM before asking kernel to shutdown.

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: [email protected]

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.

  • 3.32K users / day
  • 4.64K users / week
  • 8.59K users / month
  • 17.8K users / 6 months
  • 1 local subscriber
  • 23.1K subscribers
  • 1.26K Posts
  • 39.6K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.9
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org