From 1260eea3797de1981e8629dcf04a327d8aa8cb0f Mon Sep 17 00:00:00 2001 From: "SND\\weimingzhi_cp" Date: Mon, 5 Oct 2009 10:40:40 +0000 Subject: git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@31119 e17a0e51-4ae3-4d35-97c3-1a29b211df97 --- plugins/dfcdrom/cdr.c | 2 ++ plugins/dfinput/pad.c | 1 + plugins/dfsound/cfg.c | 3 +++ plugins/dfxvideo/cfg.c | 5 +++++ plugins/peopsxgl/gpu.c | 3 +++ 5 files changed, 14 insertions(+) (limited to 'plugins') diff --git a/plugins/dfcdrom/cdr.c b/plugins/dfcdrom/cdr.c index f16a1c3a..f8262353 100644 --- a/plugins/dfcdrom/cdr.c +++ b/plugins/dfcdrom/cdr.c @@ -571,6 +571,7 @@ void ExecCfg(char *arg) { if (stat(cfg, &buf) != -1) { if (fork() == 0) { execl(cfg, "cfgDFCdrom", arg, NULL); + exit(0); } return; } @@ -579,6 +580,7 @@ void ExecCfg(char *arg) { if (stat(cfg, &buf) != -1) { if (fork() == 0) { execl(cfg, "cfgDFCdrom", arg, NULL); + exit(0); } return; } diff --git a/plugins/dfinput/pad.c b/plugins/dfinput/pad.c index 784b8ee3..d67a3a7b 100644 --- a/plugins/dfinput/pad.c +++ b/plugins/dfinput/pad.c @@ -958,6 +958,7 @@ static void loadConfig() { long PADconfigure(void) { if (fork() == 0) { execl("cfg/cfgDFInput", "cfgDFInput", NULL); + exit(0); } return 0; } diff --git a/plugins/dfsound/cfg.c b/plugins/dfsound/cfg.c index 142494f9..35bef18e 100644 --- a/plugins/dfsound/cfg.c +++ b/plugins/dfsound/cfg.c @@ -45,6 +45,7 @@ void StartCfgTool(char * pCmdLine) { chdir("cfg"); execl(filename,"cfgDFSound",pCmdLine,NULL); + exit(0); } } else @@ -57,6 +58,7 @@ void StartCfgTool(char * pCmdLine) if(fork()==0) { execl(filename,"cfgDFSound",pCmdLine,NULL); + exit(0); } } else @@ -70,6 +72,7 @@ void StartCfgTool(char * pCmdLine) { chdir(getenv("HOME")); execl(filename,"cfgDFSound",pCmdLine,NULL); + exit(0); } } else printf("Sound error: cfgDFSound not found!\n"); diff --git a/plugins/dfxvideo/cfg.c b/plugins/dfxvideo/cfg.c index 458cde09..5c545240 100644 --- a/plugins/dfxvideo/cfg.c +++ b/plugins/dfxvideo/cfg.c @@ -19,6 +19,8 @@ #include #include +#include + #undef FALSE #undef TRUE #define MAKELONG(low,high) ((unsigned long)(((unsigned short)(low)) | (((unsigned long)((unsigned short)(high))) << 16))) @@ -172,6 +174,7 @@ void ExecCfg(char *arg) { if (stat(cfg, &buf) != -1) { if (fork() == 0) { execl(cfg, "cfgDFXVideo", arg, NULL); + exit(0); } return; } @@ -180,6 +183,7 @@ void ExecCfg(char *arg) { if (stat(cfg, &buf) != -1) { if (fork() == 0) { execl(cfg, "cfgDFXVideo", arg, NULL); + exit(0); } return; } @@ -188,6 +192,7 @@ void ExecCfg(char *arg) { if (stat(cfg, &buf) != -1) { if (fork() == 0) { execl(cfg, "cfgDFXVideo", arg, NULL); + exit(0); } return; } diff --git a/plugins/peopsxgl/gpu.c b/plugins/peopsxgl/gpu.c index f956a63c..6459a9b4 100644 --- a/plugins/peopsxgl/gpu.c +++ b/plugins/peopsxgl/gpu.c @@ -2626,6 +2626,7 @@ void StartCfgTool(char *arg) // linux: start external cfg tool if (stat(cfg, &buf) != -1) { if (fork() == 0) { execl(cfg, "cfgpeopsxgl", arg, NULL); + exit(0); } return; } @@ -2634,6 +2635,7 @@ void StartCfgTool(char *arg) // linux: start external cfg tool if (stat(cfg, &buf) != -1) { if (fork() == 0) { execl(cfg, "cfgpeopsxgl", arg, NULL); + exit(0); } return; } @@ -2642,6 +2644,7 @@ void StartCfgTool(char *arg) // linux: start external cfg tool if (stat(cfg, &buf) != -1) { if (fork() == 0) { execl(cfg, "cfgpeopsxgl", arg, NULL); + exit(0); } return; } -- cgit v1.2.3