Reset signal handlers when starting child process.

This commit is contained in:
Alexandre Julliard 2003-05-13 00:45:44 +00:00
parent f803e2a92d
commit fde5ab17f9
1 changed files with 6 additions and 0 deletions

View File

@ -25,6 +25,7 @@
#include "wine/port.h"
#include <stdio.h>
#include <signal.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
@ -493,6 +494,11 @@ static int CreateSpoolFile(LPCSTR pszOutput)
close(0);
dup2(fds[0],0);
close (fds[1]);
/* reset signals that we previously set to SIG_IGN */
signal( SIGPIPE, SIG_DFL );
signal( SIGCHLD, SIG_DFL );
system(psCmdP);
exit(0);