From f5284bf747146b913157a65d675a138ad100844d Mon Sep 17 00:00:00 2001 From: Reinhard Pfau Date: Mon, 18 Aug 2008 12:09:17 +0000 Subject: [PATCH] libi2ncommon: (reinhard) workaround for glibc weirdness.. --- src/signalfunc.cpp | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) 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&) -- 1.7.1