From bf1f9afc8d132b7fae0717889f8c40a8e54b163e Mon Sep 17 00:00:00 2001 From: satbaby Date: Sat, 15 Sep 2012 15:33:50 +0200 Subject: [PATCH] oops --- src/system/helpers.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/system/helpers.cpp b/src/system/helpers.cpp index 51657da65..8fc6d9d60 100644 --- a/src/system/helpers.cpp +++ b/src/system/helpers.cpp @@ -80,12 +80,12 @@ int my_system(const char * cmd, const char * arg1, const char * arg2, const char case 0: /* child process */ for(i = 3; i < maxfd; i++) close(i); - if(execlp(cmd, cmd, arg1, arg2, arg3, arg3, arg4, arg5, arg6, NULL)) + if(execlp(cmd, cmd, arg1, arg2, arg3, arg4, arg5, arg6, NULL)) { std::string txt = "ERROR: my_system \"" + (std::string) cmd + "\""; perror(txt.c_str()); + ret = -1; } - ret = 1; _exit (0); // terminate c h i l d proces s only default: /* parent returns to calling process */ break;