mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 08:21:12 +02:00
COPKGManager: use my_popen instead popen
popen causes some errors after flash update check
This commit is contained in:
@@ -47,7 +47,7 @@
|
|||||||
#include <system/debug.h>
|
#include <system/debug.h>
|
||||||
#include <system/helpers.h>
|
#include <system/helpers.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <stdio.h>
|
|
||||||
#include <poll.h>
|
#include <poll.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <alloca.h>
|
#include <alloca.h>
|
||||||
@@ -370,7 +370,8 @@ void COPKGManager::getPkgData(const int pkg_content_id)
|
|||||||
break;
|
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) {
|
if (!f) {
|
||||||
showError("Internal Error", strerror(errno), pkg_types[pkg_content_id]);
|
showError("Internal Error", strerror(errno), pkg_types[pkg_content_id]);
|
||||||
return;
|
return;
|
||||||
|
Reference in New Issue
Block a user