We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da2f170 commit 749847fCopy full SHA for 749847f
src/client/gpm_common.c
@@ -396,7 +396,7 @@ static int gpm_send_buffer(struct gpm_ctx *gpmctx,
396
}
397
398
ret = 0;
399
- wn = write(gpmctx->fd, &size, sizeof(uint32_t));
+ wn = send(gpmctx->fd, &size, sizeof(uint32_t), MSG_NOSIGNAL);
400
if (wn == -1) {
401
ret = errno;
402
@@ -424,7 +424,7 @@ static int gpm_send_buffer(struct gpm_ctx *gpmctx,
424
goto done;
425
426
427
- wn = write(gpmctx->fd, buffer + pos, length - pos);
+ wn = send(gpmctx->fd, buffer + pos, length - pos, MSG_NOSIGNAL);
428
429
if (errno == EINTR || errno == EAGAIN || errno == EWOULDBLOCK) {
430
continue;
0 commit comments