diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-02-10 15:06:10 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-02-10 15:06:10 -0500 |
commit | e0c8031516852143fb82d8fee91a0f4c576c7418 (patch) | |
tree | 648e6898b535448a18ce5404b9f2e69c4cc4f1a1 | |
parent | f5d32c08ba0b7307873324f8b24c4142523c1155 (diff) | |
download | tor-e0c8031516852143fb82d8fee91a0f4c576c7418.tar.gz tor-e0c8031516852143fb82d8fee91a0f4c576c7418.zip |
make EACCES survivable too.
-rw-r--r-- | src/or/reasons.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/reasons.c b/src/or/reasons.c index fc31a438f7..6eb2643a8a 100644 --- a/src/or/reasons.c +++ b/src/or/reasons.c @@ -174,11 +174,12 @@ errno_to_stream_end_reason(int e) S_CASE(ENOTSOCK): S_CASE(EPROTONOSUPPORT): S_CASE(EAFNOSUPPORT): - E_CASE(EACCES): S_CASE(ENOTCONN): return END_STREAM_REASON_INTERNAL; S_CASE(ENETUNREACH): S_CASE(EHOSTUNREACH): + E_CASE(EACCES): + E_CASE(EPERM): return END_STREAM_REASON_NOROUTE; S_CASE(ECONNREFUSED): return END_STREAM_REASON_CONNECTREFUSED; |