From d1306a1710cda4acb9a0138347cdb43943271b9c Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Fri, 27 Jun 2008 19:34:09 +0200 Subject: Verbindungen geregelt trennen... hoffentlich... --- src/mad-core.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/mad-core.cpp') diff --git a/src/mad-core.cpp b/src/mad-core.cpp index c46b932..36e889b 100644 --- a/src/mad-core.cpp +++ b/src/mad-core.cpp @@ -19,8 +19,15 @@ #include "Net/Connection.h" #include "Core/ConnectionManager.h" +#include int main() { + sigset_t signals; + + sigemptyset(&signals); + sigaddset(&signals, SIGPIPE); + sigprocmask(SIG_BLOCK, &signals, 0); + Mad::Net::Connection::init(); Mad::Core::ConnectionManager connectionManager; -- cgit v1.2.3