From 5d6f6f00f4568ea8b661d18af876d62729c0ca42 Mon Sep 17 00:00:00 2001 From: joss17 Date: Fri, 30 Oct 2009 00:45:40 +0000 Subject: [PATCH] initialization of a variable git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1783 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- libretroshare/src/rsserver/rsinit.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libretroshare/src/rsserver/rsinit.cc b/libretroshare/src/rsserver/rsinit.cc index 4bdd56d84..11985df9a 100644 --- a/libretroshare/src/rsserver/rsinit.cc +++ b/libretroshare/src/rsserver/rsinit.cc @@ -450,6 +450,11 @@ int RsInit::InitRetroShare(int argcIgnored, char **argvIgnored) sigact.sa_handler = SIG_IGN; sigact.sa_flags = 0; + sigset_t set; + sigemptyset(&set); + //sigaddset(&set, SIGINT); // or whatever other signal + sigact.sa_mask = set; + if (0 == sigaction(SIGPIPE, &sigact, NULL)) { std::cerr << "RetroShare:: Successfully Installed";