Commit 1f420967 authored by Ken Thomases's avatar Ken Thomases Committed by Alexandre Julliard

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

parent 551b4117
......@@ -7224,8 +7224,8 @@ static BOOL schedule_pipe(LPCWSTR cmd, LPCWSTR filename)
signal(SIGPIPE, SIG_DFL);
signal(SIGCHLD, SIG_DFL);
system(cmdA);
exit(0);
execl("/bin/sh", "/bin/sh", "-c", cmdA, (char*)0);
_exit(1);
}
while((no_read = read(file_fd, buf, sizeof(buf))) > 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