opkg_manager: use my_system to avoid filedescriptor leaks

Origin commit data
------------------
Branch: ni/coolstream
Commit: 42c2323135
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2015-02-08 (Sun, 08 Feb 2015)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Stefan Seyfried
2015-02-08 00:25:46 +01:00
committed by Jacek Jendrzej
parent 589f7e8f8b
commit 66dd6f7155

View File

@@ -372,7 +372,7 @@ fprintf(stderr, "execCmd(%s)\n", cmdstr);
return res;
} else {
cmd += " 2>/dev/null >&2";
int r = system(cmd.c_str());
int r = my_system(3, "/bin/sh", "-c", cmd.c_str());
if (r == -1)
return r;
return WEXITSTATUS(r);