<HTML><BODY><br><br><br>Mon, 12 May 2014 13:41:03 +0200 от David Herrmann <dh.herrmann@gmail.com>:<br>
<blockquote style="border-left:1px solid #0857A6; margin:10px; padding:0 0 0 10px;">
<div id="">
<div class="js-helper js-readmsg-msg">
<style type="text/css"></style>
<div>
<base target="_self" href="https://e.mail.ru/">
<div id="style_13998948650000000832_BODY">Hi<br>
<br>
On Mon, May 12, 2014 at 1:27 PM, dedede gfgfgf trtrtrtrtrtr<br>
<<a href="/compose?To=s.kabanov70@mail.ru">s.kabanov70@mail.ru</a>> wrote:<br>
> Hello Colin.<br>
> I am speaking about descriptors in systemd pam module. Application<br>
> which use pam can not control it. Because of:<br>
> session_fd = dup(session_fd);<br>
><br>
> in pam-module.c we have now descriptor which does not have O_CLOEXEC<br>
> set. So it will not be closed automatically during exec of children<br>
> processes<br>
> and because of this logind will not know that process which opened pam<br>
> session exited.<br>
<br>
This behavior is intentional. This way we can track the main processes<br>
of the session and get notified when they died. You should be able to<br>
close the session by using pam_close_session().<br>
<br>
Thanks<br>
David<br>
</div>
<base target="_self" href="https://e.mail.ru/">
</div>
</div>
</div>
</blockquote>
Hello<br>But all children will have that descriptor open. So when parent process will<br>die logind will not be notified.<br><br>
<br>-- <br>Sergei Kabanov<br></BODY></HTML>