]>
Commit | Line | Data |
---|---|---|
9d8fd3ad SS |
1 | diff -up openssh-5.8p2/mux.c.remove_stale openssh-5.8p2/mux.c |
2 | --- openssh-5.8p2/mux.c.remove_stale 2011-01-14 02:01:32.000000000 +0100 | |
3 | +++ openssh-5.8p2/mux.c 2011-06-09 15:27:42.556360291 +0200 | |
4 | @@ -1867,6 +1867,9 @@ muxclient(const char *path) | |
5 | unlink(path); | |
6 | } else if (errno == ENOENT) { | |
7 | debug("Control socket \"%.100s\" does not exist", path); | |
8 | + } else if (errno == ECONNREFUSED) { | |
9 | + debug("Removing stale control socket \"%.100s\"", path); | |
10 | + unlink(path); | |
11 | } else { | |
12 | error("Control socket connect(%.100s): %s", path, | |
13 | strerror(errno)); |