summaryrefslogtreecommitdiffstats
path: root/proxy/src
diff options
context:
space:
mode:
Diffstat (limited to 'proxy/src')
-rw-r--r--proxy/src/client/gpm_common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/proxy/src/client/gpm_common.c b/proxy/src/client/gpm_common.c
index 80f487c..d9015f6 100644
--- a/proxy/src/client/gpm_common.c
+++ b/proxy/src/client/gpm_common.c
@@ -177,7 +177,7 @@ static int gpm_send_buffer(struct gpm_ctx *gpmctx,
do {
ret = 0;
do {
- wn = write(gpmctx->fd, &size, sizeof(uint32_t));
+ wn = send(gpmctx->fd, &size, sizeof(uint32_t), MSG_NOSIGNAL);
if (wn == -1) {
ret = errno;
}
@@ -201,7 +201,7 @@ static int gpm_send_buffer(struct gpm_ctx *gpmctx,
pos = 0;
while (length > pos) {
- wn = write(gpmctx->fd, buffer + pos, length - pos);
+ wn = send(gpmctx->fd, buffer + pos, length - pos, MSG_NOSIGNAL);
if (wn == -1) {
if (errno == EINTR) {
continue;