Reset signal handlers when starting child process.
This commit is contained in:
parent
f803e2a92d
commit
fde5ab17f9
dlls/gdi
|
@ -25,6 +25,7 @@
|
||||||
#include "wine/port.h"
|
#include "wine/port.h"
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <signal.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
@ -493,6 +494,11 @@ static int CreateSpoolFile(LPCSTR pszOutput)
|
||||||
close(0);
|
close(0);
|
||||||
dup2(fds[0],0);
|
dup2(fds[0],0);
|
||||||
close (fds[1]);
|
close (fds[1]);
|
||||||
|
|
||||||
|
/* reset signals that we previously set to SIG_IGN */
|
||||||
|
signal( SIGPIPE, SIG_DFL );
|
||||||
|
signal( SIGCHLD, SIG_DFL );
|
||||||
|
|
||||||
system(psCmdP);
|
system(psCmdP);
|
||||||
exit(0);
|
exit(0);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue