Bug#335944: gnome-session leaves esd running in $HOME, causing pam_mount's close_session unmount to fail

Josselin Mouette joss at debian.org
Thu Oct 27 07:31:41 UTC 2005


Le mercredi 26 octobre 2005 à 17:57 -0400, Daniel Kahn Gillmor a écrit :
> The attached revision of debian/patches/07_kill_esd.diff tells esd to
> start up with a cwd of "/" instead of inheriting cwd from
> gnome-session.

It looks fine, I'll apply it in the next upload.

> The patch also tells the (hackish-looking)
> stop_esd_delayed() function to spawn its "sleep 5 ; kill %i" shell
> command with a cwd of "/".  This is enough to let pam_mount politely
> unmount any mounted homedir.

Yep, stop_esd_delayed is a crude hack. Maybe it would be better to fork
gnome-session itself, but if anything goes wrong, it's better to have a
stale sh process than a stale gnome-session process.

Regards,
-- 
 .''`.           Josselin Mouette        /\./\
: :' :           josselin.mouette at ens-lyon.org
`. `'                        joss at debian.org
   `-  Debian GNU/Linux -- The power of freedom






More information about the Pkg-gnome-maintainers mailing list