#33 Fix PAM sessions when pam_systemd is used

open
nobody
None
5
2012-05-23
2012-05-23
Anonymous
No

For details, see this Fedora bug: https://bugzilla.redhat.com/show_bug.cgi?id=821569

Essentially, fork another process to execute startwm.sh and leave its parent to close the PAM session. This way, the O_CLOEXEC flag set on the FIFO FD that pam_systemd keeps open to systemd-logind isn't going to cause the FD to get EOF on the systemd-logind side and the session will stay open.

Discussion

  • Add a fork to satisfy systemd-logind