[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#471649: fail gracefully when ControlMaster socket already exists but is not yet ready



Package: openssh-client
Version: 1:4.7p1-4
Severity: normal
Tags: upstream

lapse:~> for i in 1 2; do ssh pulse date &; done; wait
[2] 19648
[3] 19649
ControlSocket /home/madduck/.var/ssh/ssh_control_pulse.madduck.net_22_madduck already exists
[3]  + 19649 exit 255   ssh pulse date
Wed Mar 19 10:50:24 CET 2008
[2]  + 19648 done       ssh pulse date


This is a race, which the second ssh connection loses: the socket
doesn't exist when it checks to decide whether is need to become
a ControlMaster, but then the socket has appeared by the time it is
trying to become one.

Either, this needs to be handled differently, or ssh should try to
use the existing socket, even though it previously decided to become
a ControlMaster.

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.24-1-amd64 (SMP w/1 CPU core)
Locale: LANG=en_GB, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages openssh-client depends on:
ii  adduser               3.106              add and remove users and groups
ii  debconf [debconf-2.0] 1.5.20             Debian configuration management sy
ii  dpkg                  1.14.16.6          package maintenance system for Deb
ii  libc6                 2.7-9              GNU C Library: Shared libraries
ii  libcomerr2            1.40.8-2           common error description library
ii  libedit2              2.9.cvs.20050518-4 BSD editline and history libraries
ii  libkrb53              1.6.dfsg.3~beta1-3 MIT Kerberos runtime libraries
ii  libncurses5           5.6+20080203-1     Shared libraries for terminal hand
ii  libssl0.9.8           0.9.8g-7           SSL shared libraries
ii  passwd                1:4.1.0-2          change and administer password and
ii  zlib1g                1:1.2.3.3.dfsg-11  compression library - runtime

openssh-client recommends no packages.

-- no debconf information


-- 
 .''`.   martin f. krafft <madduck@debian.org>
: :'  :  proud Debian developer, author, administrator, and user
`. `'`   http://people.debian.org/~madduck - http://debiansystem.info
  `-  Debian - when you have better things to do than fixing systems

Attachment: digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/)


Reply to: