opkg_manager: use my_system to avoid filedescriptor leaks

Origin commit data
------------------
Commit: 42c2323135
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2015-02-08 (Sun, 08 Feb 2015)
This commit is contained in:
Stefan Seyfried
2015-02-08 00:25:46 +01:00
committed by Jacek Jendrzej
parent d6541c9673
commit 31dcc9ddf4

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);