2.5.1p1 logout hangs after RHL crond start

Pekka Savola pekkas at netcore.fi
Fri Feb 23 09:44:37 EST 2001


On Thu, 22 Feb 2001, John Dunlap wrote:

> The RHL 6.2 command "/etc/rc.d/init.d/crond start" prevents
> clean logout from compiled version of OpenSSH-2.5.1p1 on all
> hosts.
>
> The command "/etc/rc.d/init.d/crond stop" is OK.
> This occurs for interactive or command line requests.
>
> ssh remotehost /etc/rc.d/init.d/crond stop  ---  works every time
> ssh remotehost /etc/rc.d/init.d/crond start ---  hangs every time
>
> Control-C will terminate the hung command.  The command executed
> correctly.  When doing this interactively no trouble is noted until
> logout time.
>
> Using ssh and sshd with ssh2 protocol using ssh-agent on various
> i586 i686 boxes.

This is a known bug "(sleep 20& ; exit)", unfortunately.  Adding 'shopt -s
huponexit' in your bash initialization files on the server should work
around it.

-- 
Pekka Savola                  "Tell me of difficulties surmounted,
Netcore Oy                    not those you stumble over and fall"
Systems. Networks. Security.   -- Robert Jordan: A Crown of Swords






More information about the openssh-unix-dev mailing list