Ken Thomases : gdi32: Use exec() and _exit() instead of system() and
exit() .
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Feb 28 14:40:17 CST 2007
Module: wine
Branch: master
Commit: 9ccad53fb981b3161e32120a0ceb8a4376e7f528
URL: http://source.winehq.org/git/wine.git/?a=commit;h=9ccad53fb981b3161e32120a0ceb8a4376e7f528
Author: Ken Thomases <ken at codeweavers.com>
Date: Wed Feb 28 14:04:48 2007 -0600
gdi32: Use exec() and _exit() instead of system() and exit().
---
dlls/gdi32/printdrv.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/gdi32/printdrv.c b/dlls/gdi32/printdrv.c
index caf4e14..15bcada 100644
--- a/dlls/gdi32/printdrv.c
+++ b/dlls/gdi32/printdrv.c
@@ -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]);
More information about the wine-cvs
mailing list