mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 08:21:12 +02:00
opkg_manager: use my_system to avoid filedescriptor leaks
This commit is contained in:
committed by
Jacek Jendrzej
parent
f75ed81dd1
commit
42c2323135
@@ -372,7 +372,7 @@ fprintf(stderr, "execCmd(%s)\n", cmdstr);
|
|||||||
return res;
|
return res;
|
||||||
} else {
|
} else {
|
||||||
cmd += " 2>/dev/null >&2";
|
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)
|
if (r == -1)
|
||||||
return r;
|
return r;
|
||||||
return WEXITSTATUS(r);
|
return WEXITSTATUS(r);
|
||||||
|
Reference in New Issue
Block a user