From logind.c:
Code: Select all
/* On certain architectures (S390 and Xen, and containers),
/dev/tty0 does not exist, so don't fail if we can't open
it. */
(but they don't check the current architecture)
From execute.c:
Code: Select all
/* Drop privileges - we don't need any to pam_close_session
* and this will make PR_SET_PDEATHSIG work in most cases.
* If this fails, ignore the error - but expect sd-pam threads
* to fail to exit normally */
Code: Select all
/* FIXME: we need to do something here */
Code: Select all
/* FIXME: For now, we will not wait for the
* cgroup members to die, simply because
* cgroup notification is unreliable. It
* doesn't work at all in containers, and
* outside of containers it can be confused
* easily by leaving directories in the
* cgroup. */
Code: Select all
/* When using pivot_root() we assume that /mnt exists as place
* we can temporarily move the old root to. As we immediately
* unmount it from there it doesn't matter much which
* directory we choose for this, but it should be more likely
* than not that /mnt exists and is suitable as mount point
* and is on the same fs as the old root dir */
From service.c:
Code: Select all
/* This will leak a process, but at least no memory or any of
* our resources */
Code: Select all
/* FIXME: we need to do something here */
also found some humor:
Code: Select all
/* Uh, we sent a SIGKILL and it is still not gone?
* Must be something we cannot kill, so let's just be
* weirded out and continue */
Code: Select all
/* Are there any jobs now? Then make sure we have the
* idle pipe around. We don't really care too much
* whether this works or not, as the idle pipe is a
* feature for cosmetics, not actually useful for
* anything beyond that. */