mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 01:11:06 +02:00
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:
committed by
Jacek Jendrzej
parent
d6541c9673
commit
31dcc9ddf4
@@ -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