|
|
@@ -1008,7 +1008,14 @@ public: |
|
|
|
|
|
|
|
if (pipe (pipeHandles) == 0)
|
|
|
|
{
|
|
|
|
const pid_t result = fork();
|
|
|
|
Array<char*> argv;
|
|
|
|
for (int i = 0; i < arguments.size(); ++i)
|
|
|
|
if (arguments[i].isNotEmpty())
|
|
|
|
argv.add (const_cast<char*> (arguments[i].toUTF8().getAddress()));
|
|
|
|
|
|
|
|
argv.add (nullptr);
|
|
|
|
|
|
|
|
const pid_t result = vfork();
|
|
|
|
|
|
|
|
if (result < 0)
|
|
|
|
{
|
|
|
@@ -1017,6 +1024,7 @@ public: |
|
|
|
}
|
|
|
|
else if (result == 0)
|
|
|
|
{
|
|
|
|
#if 0
|
|
|
|
// we're the child process..
|
|
|
|
close (pipeHandles[0]); // close the read handle
|
|
|
|
|
|
|
@@ -1031,13 +1039,7 @@ public: |
|
|
|
close (STDERR_FILENO);
|
|
|
|
|
|
|
|
close (pipeHandles[1]);
|
|
|
|
|
|
|
|
Array<char*> argv;
|
|
|
|
for (int i = 0; i < arguments.size(); ++i)
|
|
|
|
if (arguments[i].isNotEmpty())
|
|
|
|
argv.add (const_cast<char*> (arguments[i].toUTF8().getAddress()));
|
|
|
|
|
|
|
|
argv.add (nullptr);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
execvp (argv[0], argv.getRawDataPointer());
|
|
|
|
exit (-1);
|
|
|
|