Ken Thomases : winspool.drv: Use exec() and _exit() instead of system() and exit().
Module: wine Branch: master Commit: 1f420967f0cde51288cb5ec332d3aa76dc9c3ca5 URL: http://source.winehq.org/git/wine.git/?a=commit;h=1f420967f0cde51288cb5ec332... Author: Ken Thomases <ken(a)codeweavers.com> Date: Wed Feb 28 14:04:54 2007 -0600 winspool.drv: Use exec() and _exit() instead of system() and exit(). --- dlls/winspool.drv/info.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/winspool.drv/info.c b/dlls/winspool.drv/info.c index 9f07f59..a1aeaee 100644 --- a/dlls/winspool.drv/info.c +++ b/dlls/winspool.drv/info.c @@ -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)
participants (1)
-
Alexandre Julliard