From 096c79fdebfa6568b6adafcdfe1a871454683e1b Mon Sep 17 00:00:00 2001 From: Fredrik Tolf Date: Tue, 15 Jan 2013 08:19:20 +0100 Subject: [PATCH] lib: Change the default behavior of send{fd,req} to block. --- lib/proc.c | 2 +- lib/req.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/proc.c b/lib/proc.c index a1dc336..ac777d4 100644 --- a/lib/proc.c +++ b/lib/proc.c @@ -83,7 +83,7 @@ int sendfd2(int sock, int fd, char *data, size_t datalen, int flags) int sendfd(int sock, int fd, char *data, size_t datalen) { - return(sendfd2(sock, fd, data, datalen, MSG_NOSIGNAL | MSG_DONTWAIT)); + return(sendfd2(sock, fd, data, datalen, MSG_NOSIGNAL)); } int recvfd(int sock, char **data, size_t *datalen) diff --git a/lib/req.c b/lib/req.c index 8ff26e0..ed5aeba 100644 --- a/lib/req.c +++ b/lib/req.c @@ -315,7 +315,7 @@ int sendreq2(int sock, struct hthead *req, int fd, int flags) int sendreq(int sock, struct hthead *req, int fd) { - return(sendreq2(sock, req, fd, MSG_NOSIGNAL | MSG_DONTWAIT)); + return(sendreq2(sock, req, fd, MSG_NOSIGNAL)); } int recvreq(int sock, struct hthead **reqp) -- 2.11.0