plugins.cpp: use popen2 with vfork for script plugins

Origin commit data
------------------
Branch: ni/coolstream
Commit: a6d0331ed9
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2012-08-22 (Wed, 22 Aug 2012)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Jacek Jendrzej
2012-08-22 09:39:08 +02:00
parent 561ae56cd1
commit 192dee0db6

View File

@@ -49,6 +49,7 @@
#include <sys/ioctl.h> #include <sys/ioctl.h>
#include <sys/types.h> #include <sys/types.h>
#include <signal.h> #include <signal.h>
#include <errno.h>
#include <global.h> #include <global.h>
#include <neutrino.h> #include <neutrino.h>
@@ -316,7 +317,6 @@ void CPlugins::startPlugin(const char * const name)
printf("[CPlugins] could not find %s\n", name); printf("[CPlugins] could not find %s\n", name);
} }
#include <errno.h>
FILE* popen2( pid_t& pid, const char *cmdstring, const char *type) { FILE* popen2( pid_t& pid, const char *cmdstring, const char *type) {
int pfd[2] ={-1,-1}; int pfd[2] ={-1,-1};