1184. [bug] libbind: call res_ndestroy() if RES_INIT is set
when res_*init() is called.
+1183. [bug] Handle ENOSR error when writing to the internal
+ control pipe. [RT #2395]
+
1182. [bug] The server could throw an assertion failure when
constructing a negative response packet.
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: socket.c,v 1.207.2.6 2002/01/22 23:17:44 gson Exp $ */
+/* $Id: socket.c,v 1.207.2.7 2002/01/23 02:35:56 gson Exp $ */
#include <config.h>
do {
cc = write(mgr->pipe_fds[1], buf, sizeof(buf));
+#ifdef ENOSR
+ /*
+ * Treat ENOSR as EAGAIN but loop slowly as it is
+ * unlikely to clear fast.
+ */
+ if (cc < 0 && errno == ENOSR) {
+ sleep(1);
+ errno = EAGAIN;
+ }
+#endif
} while (cc < 0 && SOFT_ERROR(errno));
if (cc < 0) {