From: Fredrik Tolf Date: Tue, 15 Jan 2013 07:19:20 +0000 (+0100) Subject: lib: Change the default behavior of send{fd,req} to block. X-Git-Tag: 0.12~6^2~4 X-Git-Url: http://www.dolda2000.com/gitweb/?p=ashd.git;a=commitdiff_plain;h=096c79fdebfa6568b6adafcdfe1a871454683e1b lib: Change the default behavior of send{fd,req} to block. --- 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)