projects
/
platform
/
core
/
system
/
buxton2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e8e3be
)
common: block sig pipe during send call
68/55268/1
accepted/tizen/common/20151229.103118
accepted/tizen/mobile/20151223.051829
accepted/tizen/tv/20151223.051858
accepted/tizen/wearable/20151223.051957
submit/tizen/20151222.225336
submit/tizen_common/20151223.093544
author
Bartlomiej Grzelewski
<b.grzelewski@samsung.com>
Tue, 22 Dec 2015 15:59:05 +0000
(16:59 +0100)
committer
Bartlomiej Grzelewski
<b.grzelewski@samsung.com>
Tue, 22 Dec 2015 16:07:25 +0000
(17:07 +0100)
Change-Id: I05d44ac963cfa85878d83526d7143b5d6e8efe55
common/proto.c
patch
|
blob
|
history
diff --git
a/common/proto.c
b/common/proto.c
index
8891092
..
48d2b8b
100644
(file)
--- a/
common/proto.c
+++ b/
common/proto.c
@@
-355,7
+355,7
@@
int proto_send_block(int fd, enum message_type type, uint8_t *data, int32_t len)
memcpy(hdr->data, &data[sent], hdr->len);
- r = send(fd, hdr, sizeof(*hdr) + hdr->len,
0
);
+ r = send(fd, hdr, sizeof(*hdr) + hdr->len,
MSG_NOSIGNAL
);
if (r == -1) {
bxt_err("send: fd %d errno %d", fd, errno);
return -1;
@@
-421,7
+421,7
@@
int proto_send(int fd, enum message_type type, uint8_t *data, int32_t len)
}
} while (r < 0);
- r = send(fd, buf, sizeof(*hdr) + len,
0
);
+ r = send(fd, buf, sizeof(*hdr) + len,
MSG_NOSIGNAL
);
free(buf);