Skip to content

Commit

Permalink
[BZ #434]
Browse files Browse the repository at this point in the history
Update.
	* resolv/res_init.c (res_thread_freeres): Reset _res.options.
	[BZ #434]
  • Loading branch information
Ulrich Drepper committed Oct 11, 2004
1 parent f433b06 commit 4e1c4a1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
2004-10-11 Ulrich Drepper <drepper@redhat.com>

* resolv/res_init.c (res_thread_freeres): Reset _res.options.
[BZ #434]

* resolv/res_send.c (send_dg): Use nonblocking sockets. Add
appropriate poll/select calls and restart operation if necessary.
Also handle EINTR.
Expand Down
3 changes: 3 additions & 0 deletions resolv/res_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -597,6 +597,9 @@ res_thread_freeres (void)
free (_res._u._ext.nsaddrs[ns]);
_res._u._ext.nsaddrs[ns] = NULL;
}

/* Make sure we do a full re-initialization the next time. */
_res.options = 0;
}
text_set_element (__libc_thread_subfreeres, res_thread_freeres);
text_set_element (__libc_subfreeres, res_thread_freeres);
Expand Down

0 comments on commit 4e1c4a1

Please sign in to comment.