|
|
|
@ -82,6 +82,7 @@ static int GhostRun(const std::string& opts, struct gs_runtime* r, std::string*
|
|
|
|
|
{ |
|
|
|
|
struct gsworkthreadpars wp; |
|
|
|
|
int* pret; |
|
|
|
|
int ret=0; |
|
|
|
|
|
|
|
|
|
wp.r=r; |
|
|
|
|
wp.input_callback=input; |
|
|
|
@ -96,7 +97,7 @@ static int GhostRun(const std::string& opts, struct gs_runtime* r, std::string*
|
|
|
|
|
ssize_t br; |
|
|
|
|
char buffer[4096]; |
|
|
|
|
|
|
|
|
|
if(0!=pipe(pipefd)) {*pret=-1; goto end;} |
|
|
|
|
if(0!=pipe(pipefd)) {ret=-1; goto end;} |
|
|
|
|
wp.fd=pipefd[1]; |
|
|
|
|
|
|
|
|
|
out->erase(); |
|
|
|
@ -113,6 +114,7 @@ static int GhostRun(const std::string& opts, struct gs_runtime* r, std::string*
|
|
|
|
|
else pret=reinterpret_cast<int*>(gsworkthread(&wp)); |
|
|
|
|
|
|
|
|
|
end: |
|
|
|
|
if(0!=ret) return ret; |
|
|
|
|
return *pret; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|