programming.dev
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
bleistift2@sopuli.xyz to Programmer HumorEnglish · 5 个月前

Thinking I could clean up my files in a SIGINT handler

sopuli.xyz

message-square
50
link
fedilink
412

Thinking I could clean up my files in a SIGINT handler

sopuli.xyz

bleistift2@sopuli.xyz to Programmer HumorEnglish · 5 个月前
message-square
50
link
fedilink
  • deadcream@sopuli.xyz
    link
    fedilink
    arrow-up
    86
    arrow-down
    4
    ·
    5 个月前

    That’s why you launch them through systemd.

    • ikidd@lemmy.world
      link
      fedilink
      English
      arrow-up
      86
      arrow-down
      5
      ·
      5 个月前

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

      Right?

      • DreamButt@lemmy.world
        link
        fedilink
        English
        arrow-up
        22
        ·
        5 个月前

        Really? I’ve never had issue with it

        • qaz@lemmy.world
          link
          fedilink
          English
          arrow-up
          44
          ·
          5 个月前

          It’s a joke about the criticism systemd gets

      • desktop_user@lemmy.blahaj.zone
        link
        fedilink
        arrow-up
        9
        arrow-down
        1
        ·
        5 个月前

        openrc exists

        • introvertcatto@lemmy.blahaj.zoneBanned
          link
          fedilink
          English
          arrow-up
          34
          ·
          5 个月前

          Openrc is bloat, you should manually pair electrons

    • bleistift2@sopuli.xyzOP
      link
      fedilink
      English
      arrow-up
      12
      arrow-down
      1
      ·
      5 个月前

      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
        10
        ·
        5 个月前

        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

programmer_humor

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.

  • 546 users / day
  • 4.72K users / week
  • 8.29K users / month
  • 18.1K users / 6 months
  • 2.4K local subscribers
  • 23.3K subscribers
  • 1.39K Posts
  • 52.3K Comments
  • Modlog
  • mods:
  • adr1an
  • Feyter
  • BurningTurtle
  • Pierre-Yves Lapersonne
  • BE: 0.19.11
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org