[exim-cvs] child_open_uid: restore default SIGPIPE handler

Góra strony
Delete this message
Reply to this message
Autor: Exim Git Commits Mailing List
Data:  
Dla: exim-cvs
Temat: [exim-cvs] child_open_uid: restore default SIGPIPE handler
Gitweb: http://git.exim.org/exim.git/commitdiff/605021fc4f501f97e5ec21db406f6ffde2f68cdd
Commit:     605021fc4f501f97e5ec21db406f6ffde2f68cdd
Parent:     46c573de5f3da029d2e7c6f4dbbb20a9d88faad5
Author:     Nigel Metheringham <nigel@???>
AuthorDate: Sun Jan 30 15:25:28 2011 +0000
Committer:  Nigel Metheringham <nigel@???>
CommitDate: Sun Jan 30 15:32:31 2011 +0000


    child_open_uid: restore default SIGPIPE handler


    Fixes bug 968
    Merge branch 'sigpipe-fix' of git://github.com/lp0/exim into master
---
 src/src/child.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)


diff --git a/src/src/child.c b/src/src/child.c
index 0c1fd6d..675a91b 100644
--- a/src/src/child.c
+++ b/src/src/child.c
@@ -340,6 +340,7 @@ output when things go wrong. */
if (pid == 0)
{
signal(SIGUSR1, SIG_IGN);
+ signal(SIGPIPE, SIG_DFL);

   if (newgid != NULL && setgid(*newgid) < 0)
     {