diff options
author | Damien Miller <djm@mindrot.org> | 2005-05-04 15:33:09 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2005-05-04 15:33:09 +1000 |
commit | 4f10e25684fdbe00b9e563b510e03f9c2aa7a192 (patch) | |
tree | 1337ed6e6a35edd5c244b5f8a9d58cf947728cb2 /ssh.c | |
parent | 5b115d4401453a99313996dc48e6b8f3e54c5b54 (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |