[prev in list] [next in list] [prev in thread] [next in thread]
List: wine-cvs
Subject: Ken Thomases : gdi32: Use exec() and _exit() instead of system() and
From: Alexandre Julliard <julliard () wine ! codeweavers ! com>
Date: 2007-02-28 20:40:17
Message-ID: E1HMVaz-0002mh-BM () wine ! codeweavers ! com
[Download RAW message or body]
Module: wine
Branch: master
Commit: 9ccad53fb981b3161e32120a0ceb8a4376e7f528
URL: http://source.winehq.org/git/wine.git/?a=commit;h=9ccad53fb981b3161e32120a0ceb8a4376e7f528
Author: Ken Thomases <ken@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]);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic