From e90ed11a49e986009b830a8661696b2a6f060527 Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Sat, 15 Sep 2012 15:33:50 +0200 Subject: [PATCH] oops Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/bf1f9afc8d132b7fae0717889f8c40a8e54b163e Author: Jacek Jendrzej Date: 2012-09-15 (Sat, 15 Sep 2012) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- 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;