gdi32: Use exec() and _exit() instead of system() and exit().

This commit is contained in:
Ken Thomases 2007-02-28 14:04:48 -06:00 committed by Alexandre Julliard
parent 1f420967f0
commit 9ccad53fb9
1 changed files with 2 additions and 2 deletions

View File

@ -505,8 +505,8 @@ static int CreateSpoolFile(LPCSTR pszOutput)
signal( SIGPIPE, SIG_DFL );
signal( SIGCHLD, SIG_DFL );
system(psCmdP);
exit(0);
execl("/bin/sh", "/bin/sh", "-c", psCmdP, (char*)0);
_exit(1);
}
close (fds[0]);