summary |
tags |
clone url |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
43c7d2d)
SCCS-vsn: lib/libc/net/res_send.c 6.24
*/
#if defined(LIBC_SCCS) && !defined(lint)
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)res_send.c 6.23 (Berkeley) %G%";
+static char sccsid[] = "@(#)res_send.c 6.24 (Berkeley) %G%";
#endif /* LIBC_SCCS and not lint */
/*
#endif /* LIBC_SCCS and not lint */
/*
terrno = errno;
#ifdef DEBUG
if (_res.options & RES_DEBUG)
terrno = errno;
#ifdef DEBUG
if (_res.options & RES_DEBUG)
- perror("socket failed");
+ perror("socket (vc) failed");
s = socket(AF_INET, SOCK_DGRAM, 0);
s = socket(AF_INET, SOCK_DGRAM, 0);
+ if (s < 0) {
+ terrno = errno;
+#ifdef DEBUG
+ if (_res.options & RES_DEBUG)
+ perror("socket (dg) failed");
+#endif DEBUG
+ continue;
+ }
+ }
#if BSD >= 43
/*
* I'm tired of answering this question, so:
#if BSD >= 43
/*
* I'm tired of answering this question, so: