KDE Social
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
@bleistift2@sopuli.xyz to Programmer Humor@programming.devEnglish • 7 months ago

Thinking I could clean up my files in a SIGINT handler

sopuli.xyz

message-square
44
fedilink
377

Thinking I could clean up my files in a SIGINT handler

sopuli.xyz

@bleistift2@sopuli.xyz to Programmer Humor@programming.devEnglish • 7 months ago
message-square
44
fedilink
  • @deadcream@sopuli.xyz
    link
    fedilink
    73•7 months ago

    That’s why you launch them through systemd.

    • @ikidd@lemmy.world
      link
      fedilink
      English
      72•7 months ago

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

      Right?

      • DreamButt
        link
        fedilink
        English
        18•7 months ago

        Really? I’ve never had issue with it

        • qaz
          link
          fedilink
          English
          35•7 months ago

          It’s a joke about the criticism systemd gets

      • desktop_user [they/them]
        link
        fedilink
        7•7 months ago

        openrc exists

        • @introvertcatto@lemmy.blahaj.zone
          link
          fedilink
          English
          24•7 months ago

          Openrc is bloat, you should manually pair electrons

    • @bleistift2@sopuli.xyzOP
      link
      fedilink
      English
      8•7 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
        6•7 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: !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
  • 1.44K users / day
  • 4.64K users / week
  • 7.81K users / month
  • 20.1K users / 6 months
  • 25K subscribers
  • 1.57K Posts
  • 57.4K Comments
  • Modlog
  • mods:
  • Feyter
  • adr1an
  • @BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne
  • BE: 0.19.3
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org