[wpdev-commits] wolfpack server.cpp,1.30,1.31
Brought to you by:
rip,
thiagocorrea
From: Sebastian H. <dar...@us...> - 2004-10-06 12:10:20
|
Update of /cvsroot/wpdev/wolfpack In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3206 Modified Files: server.cpp Log Message: sigpipe handler Index: server.cpp =================================================================== RCS file: /cvsroot/wpdev/wolfpack/server.cpp,v retrieving revision 1.30 retrieving revision 1.31 diff -C2 -d -r1.30 -r1.31 *** server.cpp 1 Oct 2004 19:43:56 -0000 1.30 --- server.cpp 6 Oct 2004 12:09:59 -0000 1.31 *************** *** 75,78 **** --- 75,82 ---- #endif + #if defined(Q_OS_UNIX) + #include <signal.h> + #endif + cComponent::cComponent() { *************** *** 260,263 **** --- 264,272 ---- bool cServer::run( int argc, char** argv ) { + // If have no idea where i should put this otherwise + #if defined(Q_OS_UNIX) + signal(SIGPIPE, SIG_IGN); + #endif + bool error = false; |