From a8376a5f8a3fe58a179b9c692c92131b31f1f6a7 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Thu, 13 Nov 2014 12:06:29 +0100 Subject: [PATCH] COPKGManager: use my_popen instead popen popen causes some errors after flash update check --- src/gui/opkg_manager.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/gui/opkg_manager.cpp b/src/gui/opkg_manager.cpp index e05486e40..23d899b99 100644 --- a/src/gui/opkg_manager.cpp +++ b/src/gui/opkg_manager.cpp @@ -47,7 +47,7 @@ #include #include #include -#include + #include #include #include @@ -370,7 +370,8 @@ void COPKGManager::getPkgData(const int pkg_content_id) break; } - FILE *f = popen(pkg_types[pkg_content_id].c_str(), "r"); + pid_t pid = 0; + FILE *f = my_popen(pid, pkg_types[pkg_content_id].c_str(), "r"); if (!f) { showError("Internal Error", strerror(errno), pkg_types[pkg_content_id]); return;