[Pkg-shadow-devel] Bug#314727: login: suspend command from su shell fails to return to parent shell

Nicolas François Nicolas François <nicolas.francois@centraliens.net>, 314727@bugs.debian.org
Sun, 19 Jun 2005 00:52:12 +0200


Hello,

I can also reproduce it. It is caused by the new setting of CLOSE_SESSIONS
to yes in /etc/login.defs.

To perform CLOSE_SESSIONS, a fork is needed, and when the shell is
suspended, the whole process is not completely suspended and thus the
previous shell (used to su) do not get the focus.

So, setting CLOSE_SESSIONS to no will solve this issue (but won't close
this bug).
I still don't know how to fix this issue with CLOSE_SESSIONS set to yes.


I noted that if "su -" is used, then bash reports:
suspend: cannot suspend a login shell
That may be an hint.


Best Regards,
-- 
Nekral