• Agent641@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      49 seconds ago

      “Mmm, that didn’t work, try again later I guess? Just stop bothering me with your petty needs and get back to generating monetizable data that I can harvest.”

    • primemagnus@lemmy.ca
      link
      fedilink
      arrow-up
      3
      arrow-down
      3
      ·
      2 hours ago

      Came here to say this. Windows goes full retard on everything it does. Graceful smh

  • hector@sh.itjust.works
    link
    fedilink
    arrow-up
    1
    ·
    2 hours ago

    Linux is actually great if you need to implement graceful shutdown with signals – I love it all around :)))

  • Realitätsverlust@lemmy.zip
    link
    fedilink
    English
    arrow-up
    54
    arrow-down
    3
    ·
    8 hours ago

    Linux does give every application time to shut down correctly, but unlike windows, it won’t wait for ages until every process is down. Linux WILL shut down in a certain timeframe, whereas windows waits for years if necessary. In my old job, we all had to use windows and I had times where I clicked shut down, turned off my monitor, grabbed my stuff, left and in the next morning, the PC was still on because Notepad refused to just close lmao.

  • MammutX@europe.pub
    link
    fedilink
    arrow-up
    9
    ·
    5 hours ago

    and this how I deleted the file I edited the entire day: shutdown -h now. No go to bed NOW!

  • h4x0r@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    18
    ·
    7 hours ago
    $ kill -L
     1) SIGHUP	 2) SIGINT	 3) SIGQUIT	 4) SIGILL	 5) SIGTRAP
     6) SIGABRT	 7) SIGBUS	 8) SIGFPE	 9) SIGKILL	10) SIGUSR1
    11) SIGSEGV	12) SIGUSR2	13) SIGPIPE	14) SIGALRM	15) SIGTERM
    16) SIGSTKFLT	17) SIGCHLD	18) SIGCONT	19) SIGSTOP	20) SIGTSTP
    21) SIGTTIN	22) SIGTTOU	23) SIGURG	24) SIGXCPU	25) SIGXFSZ
    26) SIGVTALRM	27) SIGPROF	28) SIGWINCH	29) SIGIO	30) SIGPWR
    31) SIGSYS	34) SIGRTMIN	35) SIGRTMIN+1	36) SIGRTMIN+2	37) SIGRTMIN+3
    38) SIGRTMIN+4	39) SIGRTMIN+5	40) SIGRTMIN+6	41) SIGRTMIN+7	42) SIGRTMIN+8
    43) SIGRTMIN+9	44) SIGRTMIN+10	45) SIGRTMIN+11	46) SIGRTMIN+12	47) SIGRTMIN+13
    48) SIGRTMIN+14	49) SIGRTMIN+15	50) SIGRTMAX-14	51) SIGRTMAX-13	52) SIGRTMAX-12
    53) SIGRTMAX-11	54) SIGRTMAX-10	55) SIGRTMAX-9	56) SIGRTMAX-8	57) SIGRTMAX-7
    58) SIGRTMAX-6	59) SIGRTMAX-5	60) SIGRTMAX-4	61) SIGRTMAX-3	62) SIGRTMAX-2
    63) SIGRTMAX-1	64) SIGRTMAX
    
  • astrsk@fedia.io
    link
    fedilink
    arrow-up
    54
    ·
    9 hours ago

    If your app doesn’t respond to SIGTERM gracefully, you need to fix your app. The system did its job as documented.

    • Jakeroxs@sh.itjust.works
      link
      fedilink
      arrow-up
      10
      ·
      8 hours ago

      I’ve tried to turn a pc off to go to sleep, only to realize in the morning it’s still on because some program refused to close.

      Now when I see the prompt to force close, I just say yes.

  • chronicledmonocle@lemmy.world
    link
    fedilink
    arrow-up
    107
    ·
    edit-2
    3 hours ago

    Linux gives processes a chance to gracefully close. However, it also will absolutely NOT allow a process to hang up the shutdown or restart procedure after a point. If you’re using systemd (which there is a good chance you are), it’ll count down. If the process hasn’t stopped in the time allotted, it gets Old Yellered.