initialization of a variable

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1783 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
joss17 2009-10-30 00:45:40 +00:00
parent cabf6260c2
commit 5d6f6f00f4

View File

@ -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";