mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 16:01:20 +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;
|
||||
} 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);
|
||||
|
Reference in New Issue
Block a user