[exim-cvs] Do not use MSG_NOSIGNAL on send() in ${udpsend}

Góra strony
Delete this message
Reply to this message
Autor: Exim Git Commits Mailing List
Data:  
Dla: exim-cvs
Temat: [exim-cvs] Do not use MSG_NOSIGNAL on send() in ${udpsend}
Gitweb: http://git.exim.org/exim.git/commitdiff/9cb1785a68901ce990c7581bd465d0931edf166e
Commit:     9cb1785a68901ce990c7581bd465d0931edf166e
Parent:     05070e30ddf4711848752213928f862ada1a509e
Author:     Jeremy Harris <jgh146exb@???>
AuthorDate: Mon Sep 30 20:24:13 2013 +0100
Committer:  Jeremy Harris <jgh146exb@???>
CommitDate: Mon Sep 30 22:44:43 2013 +0100


    Do not use MSG_NOSIGNAL on send() in ${udpsend}


    Some non-Posix systems don't define it.  Anyway, Exim ignores SIGPIPE for most purposes.
---
 src/src/acl.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/src/src/acl.c b/src/src/acl.c
index e3efb7e..520375a 100644
--- a/src/src/acl.c
+++ b/src/src/acl.c
@@ -2901,7 +2901,7 @@ if (r < 0) goto defer;
r = ip_connect(s, host_af, h->address, portnum, 1);
if (r < 0) goto defer;
len = Ustrlen(arg);
-r = send(s, arg, len, MSG_NOSIGNAL);
+r = send(s, arg, len, 0);
if (r < 0) goto defer;
if (r < len)
{