Unfortunately, the previous method is not optimal because SIGKILL cannot be intercepted. One could however call prctl.set_pdeathsig() (analogous to PR_SET_PDEATHSIG of prctl(2)) after forking in the child process.
** Patch added: "Call prctl.set_pdeathsig() after forking" https://bugs.launchpad.net/redshift/+bug/677783/+attachment/3227272/+files/terminate-daemon.patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/677783 Title: Redshift does not quit upon logout from session To manage notifications about this bug go to: https://bugs.launchpad.net/redshift/+bug/677783/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs