Remove USR1 signal handler when spawning child processes
This commit is contained in:
parent
0de5ebfbf3
commit
4e48896237
1 changed files with 7 additions and 0 deletions
|
@ -6,6 +6,13 @@
|
||||||
#include <mist/stream.h>
|
#include <mist/stream.h>
|
||||||
|
|
||||||
int spawnForked(Socket::Connection &S){
|
int spawnForked(Socket::Connection &S){
|
||||||
|
{
|
||||||
|
struct sigaction new_action;
|
||||||
|
new_action.sa_handler = SIG_IGN;
|
||||||
|
sigemptyset(&new_action.sa_mask);
|
||||||
|
new_action.sa_flags = 0;
|
||||||
|
sigaction(SIGUSR1, &new_action, NULL);
|
||||||
|
}
|
||||||
mistOut tmp(S);
|
mistOut tmp(S);
|
||||||
return tmp.run();
|
return tmp.run();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue