COPKGManager: use my_popen instead popen

popen causes some errors after flash update check
This commit is contained in:
2014-11-13 12:06:29 +01:00
parent 6942173bf7
commit a8376a5f8a

View File

@@ -47,7 +47,7 @@
#include <system/debug.h>
#include <system/helpers.h>
#include <unistd.h>
#include <stdio.h>
#include <poll.h>
#include <fcntl.h>
#include <alloca.h>
@@ -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;