mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-25 06:40:58 -04:00
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:
parent
cabf6260c2
commit
5d6f6f00f4
1 changed files with 5 additions and 0 deletions
|
@ -450,6 +450,11 @@ int RsInit::InitRetroShare(int argcIgnored, char **argvIgnored)
|
||||||
sigact.sa_handler = SIG_IGN;
|
sigact.sa_handler = SIG_IGN;
|
||||||
sigact.sa_flags = 0;
|
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))
|
if (0 == sigaction(SIGPIPE, &sigact, NULL))
|
||||||
{
|
{
|
||||||
std::cerr << "RetroShare:: Successfully Installed";
|
std::cerr << "RetroShare:: Successfully Installed";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue