diff options
Diffstat (limited to 'tools/ompipe.c')
-rw-r--r-- | tools/ompipe.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/ompipe.c b/tools/ompipe.c index df8066b..fed1dc3 100644 --- a/tools/ompipe.c +++ b/tools/ompipe.c @@ -154,7 +154,7 @@ preparePipe(instanceData *pData) if(!pData->bHadError) { char errStr[1024]; rs_strerror_r(errno, errStr, sizeof(errStr)); - errmsg.LogError(0, RS_RET_NO_FILE_ACCESS, "Could no open output pipe '%s': %s", + errmsg.LogError(0, RS_RET_NO_FILE_ACCESS, "Could not open output pipe '%s': %s", pData->pipe, errStr); pData->bHadError = 1; } @@ -289,6 +289,12 @@ ENDfreeInstance BEGINtryResume CODESTARTtryResume + if(pData->fd == -1) { + rsRetVal iRetLocal; + iRetLocal = preparePipe(pData); + if((iRetLocal != RS_RET_OK) || (pData->fd == -1)) + iRet = RS_RET_SUSPENDED; + } ENDtryResume BEGINdoAction |