diff options
author | jasone <jasone@FreeBSD.org> | 2000-10-12 04:29:44 +0000 |
---|---|---|
committer | jasone <jasone@FreeBSD.org> | 2000-10-12 04:29:44 +0000 |
commit | 1fb33103fc5d61189bde8451a11f1ae9000c6e70 (patch) | |
tree | 272f72d47283a6efd3c8baa8194e8ff7116d9c73 /lib/libc | |
parent | ea0e2747d8b75e9a9364327af892848bf02ee75c (diff) | |
download | FreeBSD-src-1fb33103fc5d61189bde8451a11f1ae9000c6e70.zip FreeBSD-src-1fb33103fc5d61189bde8451a11f1ae9000c6e70.tar.gz |
Fix pthread cancellation point propagation.
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/net/res_send.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libc/net/res_send.c b/lib/libc/net/res_send.c index e720fc7..cfcf815 100644 --- a/lib/libc/net/res_send.c +++ b/lib/libc/net/res_send.c @@ -420,7 +420,7 @@ res_send(buf, buflen, ans, anssiz) res_close(); goto next_ns; case res_done: - close(kq); + _close(kq); return (resplen); case res_modified: /* give the hook another try */ @@ -430,7 +430,7 @@ res_send(buf, buflen, ans, anssiz) case res_error: /*FALLTHROUGH*/ default: - close(kq); + _close(kq); return (-1); } } while (!done); @@ -868,19 +868,19 @@ read_len: case res_error: /*FALLTHROUGH*/ default: - close(kq); + _close(kq); return (-1); } } while (!done); } - close(kq); + _close(kq); return (resplen); next_ns: ; } /*foreach ns*/ } /*foreach retry*/ res_close(); - close(kq); + _close(kq); if (!v_circuit) { if (!gotsomewhere) errno = ECONNREFUSED; /* no nameservers found */ |