summaryrefslogtreecommitdiff
path: root/ssh.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2005-05-04 15:33:09 +1000
committerDamien Miller <djm@mindrot.org>2005-05-04 15:33:09 +1000
commit4f10e25684fdbe00b9e563b510e03f9c2aa7a192 (patch)
tree1337ed6e6a35edd5c244b5f8a9d58cf947728cb2 /ssh.c
parent5b115d4401453a99313996dc48e6b8f3e54c5b54 (diff)
- (djm) [ssh.c] some systems return EADDRINUSE on a bind to an already-used
unix domain socket, so catch that too; from jakob@ ok dtucker@
Diffstat (limited to 'ssh.c')
-rw-r--r--ssh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ssh.c b/ssh.c
index 703cb8bd3..1f19229b7 100644
--- a/ssh.c
+++ b/ssh.c
@@ -1095,7 +1095,7 @@ ssh_control_listener(void)
1095 old_umask = umask(0177); 1095 old_umask = umask(0177);
1096 if (bind(control_fd, (struct sockaddr*)&addr, addr_len) == -1) { 1096 if (bind(control_fd, (struct sockaddr*)&addr, addr_len) == -1) {
1097 control_fd = -1; 1097 control_fd = -1;
1098 if (errno == EINVAL) 1098 if (errno == EINVAL || errno == EADDRINUSE)
1099 fatal("ControlSocket %s already exists", 1099 fatal("ControlSocket %s already exists",
1100 options.control_path); 1100 options.control_path);
1101 else 1101 else