Bug#425314: $HOME still in use after session has been closed - Steps to reproduce
Following might be helpful
`strace -fe execve startkde` (or startx, or in .xinitrc) and
`fuser -m /my/home/dir`
>Shouldn't the PAM session (which triggers libpam-mount to
>umount) only be closed after the X session has been closed, ie after
>the above processes have exited?
The problem I see is that all the kde processes wrongly detach from the X
structure (setsid / reparent to init / etc.). _Ideally_, `ps afx` should
show all the WM fluff _under_ kdm/gdm/etc, like this:
3798 ? Ss 0:00 /opt/kde3/bin/kdm
3905 tty7 SLs+ 1:00 \_ /usr/bin/X -br -dpi 96 -nolisten tcp :0 vt7 -auth
3920 ? S 0:00 \_ -:0
4197 ? Ss 0:00 \_ /usr/bin/icewm-session
4247 ? Ss 0:00 \_ /usr/bin/ssh-agent /bin/bash /etc/X11/xin
4248 ? SNs 0:00 \_ icewmbg
4249 ? Ss 0:12 \_ icewm
4251 ? Ss 0:03 | \_ xterm -ls -fg gray -bg #001020 -geome
4253 pts/0 Ss 0:00 | | \_ -bash
4375 pts/0 S+ 0:01 | | \_ ssh linux01
4376 ? Ssl 0:00 | \_ xmms
4378 ? Ss 0:10 | \_ gaim
4411 ? Ss 0:00 | \_ xterm -ls -fg gray -bg #001020 -geome
4413 pts/1 Ss 0:00 | | \_ -bash
6550 pts/1 R+ 0:00 | | \_ ps xaf
4712 ? Ss 0:00 | \_ /bin/sh /usr/bin/firefox
4717 ? Sl 0:33 | | \_ /usr/lib/firefox/firefox-bin
4739 ? Ss 0:05 | \_ xterm -ls -fg gray -bg #001020 -geome
4741 pts/2 Ss 0:00 | \_ -bash
6447 pts/2 S+ 0:00 | \_ joe geodesic.c
4250 ? Ss 0:00 \_ icewmtray
As far as icewm is concerned, all programs die when icewm-session
terminates, the ~/.xsession-errors is closed (only open by icewm-session),
and -:0 (kdm) gets control back, and can unwind the PAM stack.
Reply to: