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

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

View File

@ -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)