diff options
author | Steve Bennett <steveb@workware.net.au> | 2017-02-13 09:31:00 +1000 |
---|---|---|
committer | Steve Bennett <steveb@workware.net.au> | 2017-02-13 09:31:00 +1000 |
commit | f2601486583192dd5fc2838be7e3be211f674d26 (patch) | |
tree | 04e433a28f8eb1391641b3cc3430e1ab08863ff9 /jim-aio.c | |
parent | 0c47d21079075444dde8e0fd1545b9a81e1c2f33 (diff) | |
download | jimtcl-f2601486583192dd5fc2838be7e3be211f674d26.zip jimtcl-f2601486583192dd5fc2838be7e3be211f674d26.tar.gz jimtcl-f2601486583192dd5fc2838be7e3be211f674d26.tar.bz2 |
aio: Fix stdio error detection
The test for ECONNABORTED was reversed such that errors such as ENXIO
did not correctly return an error.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
Diffstat (limited to 'jim-aio.c')
-rw-r--r-- | jim-aio.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -178,7 +178,7 @@ static int stdio_error(const AioFile *af) } #endif #ifdef ECONNABORTED - if (errno != ECONNABORTED) { + if (errno == ECONNABORTED) { return JIM_OK; } #endif |