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

Alexander Gattin Alexander Gattin <arg@online.com.ua>, 314727@bugs.debian.org
Mon, 20 Jun 2005 12:26:07 +0300


tags 314727 upstream pending
thanks

Hi!

On Sun, Jun 19, 2005 at 07:40:27PM +0200, Tomasz Kłoczko wrote:
> Probaly on CLOSE_SESSIONS=yes is something missing in current code. 
> Question is "what is missing ?".

Sorry, I checked upstream only 0.5 hour ago. The bug
is fixed there in run_shell function (ripped out of
su.c from sh-utils after the Mandrake pam patch have
been applied) the same way I did in 356th patch.

Differences are: handling of SIGTERM in run_shell,
slightly different loop condition and:
waitpid(-1, ...) instead of waitpid() for specific pid
this also differs with your pre-run_shell() code.

-- 
WBR,
xrgtn