~mdw
/
adns
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Parse searchlist; beginnings of paying attention.
[adns]
/
src
/
transmit.c
diff --git
a/src/transmit.c
b/src/transmit.c
index
d3978c3
..
d0b9d95
100644
(file)
--- a/
src/transmit.c
+++ b/
src/transmit.c
@@
-179,7
+179,9
@@
void adns__query_tcp(adns_query qu, struct timeval now) {
iov[0].iov_len= 2;
iov[1].iov_base= qu->query_dgram;
iov[1].iov_len= qu->query_dglen;
iov[0].iov_len= 2;
iov[1].iov_base= qu->query_dgram;
iov[1].iov_len= qu->query_dglen;
+ adns__sigpipe_protect(qu->ads);
wr= writev(qu->ads->tcpsocket,iov,2);
wr= writev(qu->ads->tcpsocket,iov,2);
+ adns__sigpipe_unprotect(qu->ads);
if (wr < 0) {
if (!(errno == EAGAIN || errno == EINTR || errno == ENOSPC ||
errno == ENOBUFS || errno == ENOMEM)) {
if (wr < 0) {
if (!(errno == EAGAIN || errno == EINTR || errno == ENOSPC ||
errno == ENOBUFS || errno == ENOMEM)) {