From: Reinhard Pfau Date: Mon, 18 Aug 2008 12:09:17 +0000 (+0000) Subject: libi2ncommon: (reinhard) workaround for glibc weirdness.. X-Git-Tag: v2.6~156 X-Git-Url: http://developer.intra2net.com/git/?a=commitdiff_plain;h=f5284bf747146b913157a65d675a138ad100844d;p=libi2ncommon libi2ncommon: (reinhard) workaround for glibc weirdness.. --- diff --git a/src/signalfunc.cpp b/src/signalfunc.cpp index 157a9db..ed0f544 100644 --- a/src/signalfunc.cpp +++ b/src/signalfunc.cpp @@ -304,6 +304,12 @@ bool install_signal_handler( original_signal_action[signum] = *old_action; } } + else if (res > 0) + { + // some glibc's seem to return the errno instead of storing + // it in the appropriate var... *sigh* + errno = res; + } return (0 == res); } // eo install_signal_handler(int,sigaction&)