From: Lennart Poettering Date: Mon, 5 Jan 2015 23:26:25 +0000 (+0100) Subject: core: add new logic for services to store file descriptors in PID 1 X-Git-Tag: v219~679 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;ds=sidebyside;h=a354329f724d6ce913d2ccffb2be8f3327a67faa;hp=a354329f724d6ce913d2ccffb2be8f3327a67faa;p=elogind.git core: add new logic for services to store file descriptors in PID 1 With this change it is possible to send file descriptors to PID 1, via sd_pid_notify_with_fds() which PID 1 will store individually for each service, and pass via the usual fd passing logic on next invocation. This is useful for enable daemon reload schemes where daemons serialize their state to /run, push their fds into PID 1 and terminate, restoring their state on next start from the data in /run and passed in from PID 1. The fds are kept by PID 1 as long as no POLLHUP or POLLERR is seen on them, and the service they belong to are either not dead or failed, or have a job queued. ---