From 1f420967f0cde51288cb5ec332d3aa76dc9c3ca5 Mon Sep 17 00:00:00 2001 From: Ken Thomases Date: Wed, 28 Feb 2007 14:04:54 -0600 Subject: [PATCH] winspool.drv: Use exec() and _exit() instead of system() and exit(). --- dlls/winspool.drv/info.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/winspool.drv/info.c b/dlls/winspool.drv/info.c index 9f07f591828..a1aeaee0ae3 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)