From: Michael Chase-S. <mc...@us...> - 2012-01-25 16:52:45
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "SFCB - Small Footprint CIM Broker". The branch, master has been updated via 78386f106235d265f8a4b806110123d24f868b0a (commit) via c0267787f90ebdc386045e45ced2f040758e6b47 (commit) from 46e17f272fa749b3ee0e560c069f7c0b12b4072d (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 78386f106235d265f8a4b806110123d24f868b0a Author: Michael Chase-Salerno <br...@li...> Date: Wed Jan 25 11:51:46 2012 -0500 [ 3478930 ] Handle SIGPIPE in providerMgr commit c0267787f90ebdc386045e45ced2f040758e6b47 Author: Michael Chase-Salerno <br...@li...> Date: Wed Jan 25 11:50:30 2012 -0500 [ 3478930 ] Handle SIGPIPE in providerMgr ----------------------------------------------------------------------- Summary of changes: diff --git a/ChangeLog b/ChangeLog index 6edf663..cb2f499 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2012-01-25 Michael Chase-Salerno <br...@li...> + + * providerMgr.c + [ 3478930 ] Handle SIGPIPE in providerMgr + 2011-12-11 Michael Chase-Salerno <br...@li...> * test/xmltest/SAE* diff --git a/providerDrv.c b/providerDrv.c index efc58f4..038f16e 100644 --- a/providerDrv.c +++ b/providerDrv.c @@ -458,6 +458,15 @@ stopProc(void *p) exit(0); } +static void handleSigPipe(int sig) +{ + // Got a sigpipe, but we don't want to do anything about it because it could + // cause the provider to unload improperly. + mlogf(M_ERROR,M_SHOW, "-#- %s - %d provider received a SIGPIPE signal, ignoring\n", + processName, currentProc); +} + + static void handleSigSegv(int sig) { @@ -862,6 +871,7 @@ getProcess(ProviderInfo * info, ProviderProcess ** proc) setSignal(SIGCHLD, SIG_DFL, 0); setSignal(SIGTERM, SIG_IGN, 0); setSignal(SIGHUP, SIG_IGN, 0); + setSignal(SIGPIPE, handleSigPipe,0); setSignal(SIGUSR1, handleSigUsr1, 0); setSignal(SIGSEGV, handleSigSegv, SA_ONESHOT); hooks/post-receive -- SFCB - Small Footprint CIM Broker |