From a4045f7661ca0cccd8051a71de24af314b574f5d Mon Sep 17 00:00:00 2001
From: ilor <kailoran@gmail.com>
Date: Wed, 26 Sep 2012 23:58:10 +0200
Subject: [PATCH] rm pointless signal handler error message

---
 libcorpus2/util/tokentimer.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libcorpus2/util/tokentimer.cpp b/libcorpus2/util/tokentimer.cpp
index cf1767f..10a464e 100644
--- a/libcorpus2/util/tokentimer.cpp
+++ b/libcorpus2/util/tokentimer.cpp
@@ -77,10 +77,10 @@ void TokenTimer::register_signal_handler()
 	memset(&s, 0, sizeof(s));
 	s.sa_handler = &handler;
 	if (sigaction(SIGUSR1, &s, 0) != 0)
-#endif
 	{
 		std::cerr << "Signal handler registration error\n";
 	}
+#endif
 }
 
 } /* end ns Corpus2 */
-- 
GitLab