Commit 9ccad53f authored by Ken Thomases's avatar Ken Thomases Committed by Alexandre Julliard

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

parent 1f420967
......@@ -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]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment