From 42c23231350c077041c20976e3fb6a269a137d56 Mon Sep 17 00:00:00 2001 From: Stefan Seyfried Date: Sun, 8 Feb 2015 00:25:46 +0100 Subject: [PATCH] opkg_manager: use my_system to avoid filedescriptor leaks --- src/gui/opkg_manager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/opkg_manager.cpp b/src/gui/opkg_manager.cpp index 80f1cb38f..959dca1c0 100644 --- a/src/gui/opkg_manager.cpp +++ b/src/gui/opkg_manager.cpp @@ -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);