summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorSND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2009-10-05 10:40:40 +0000
committerSND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2009-10-05 10:40:40 +0000
commit1260eea3797de1981e8629dcf04a327d8aa8cb0f (patch)
treeff8bcc6775aee960f881c16df6b8ab224dd66586 /plugins
parent714a40b66dedf426eb1b3b8938168b5a34ffcb5f (diff)
downloadpcsxr-1260eea3797de1981e8629dcf04a327d8aa8cb0f.tar.gz
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@31119 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'plugins')
-rw-r--r--plugins/dfcdrom/cdr.c2
-rw-r--r--plugins/dfinput/pad.c1
-rw-r--r--plugins/dfsound/cfg.c3
-rw-r--r--plugins/dfxvideo/cfg.c5
-rw-r--r--plugins/peopsxgl/gpu.c3
5 files changed, 14 insertions, 0 deletions
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 <sys/stat.h>
#include <unistd.h>
+#include <stdlib.h>
+
#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;
}