Mon, 12 May 2014 13:41:03 +0200 от David Herrmann <dh.herrm...@gmail.com>: >Hi > >On Mon, May 12, 2014 at 1:27 PM, dedede gfgfgf trtrtrtrtrtr >< s.kabano...@mail.ru > wrote: >> Hello Colin. >> I am speaking about descriptors in systemd pam module. Application >> which use pam can not control it. Because of: >> session_fd = dup(session_fd); >> >> in pam-module.c we have now descriptor which does not have O_CLOEXEC >> set. So it will not be closed automatically during exec of children >> processes >> and because of this logind will not know that process which opened pam >> session exited. > >This behavior is intentional. This way we can track the main processes >of the session and get notified when they died. You should be able to >close the session by using pam_close_session(). > >Thanks >David Hello But all children will have that descriptor open. So when parent process will die logind will not be notified. -- Sergei Kabanov
_______________________________________________ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel