diff options
Diffstat (limited to '')
| -rw-r--r-- | src/functionexecute.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/functionexecute.cpp b/src/functionexecute.cpp index f692036..0b0aabf 100644 --- a/src/functionexecute.cpp +++ b/src/functionexecute.cpp | |||
| @@ -31,7 +31,7 @@ Variable FunctionExecute::call( Variable &/*input*/, VarList lParams ) | |||
| 31 | Process pCmd( Process::Both, "/bin/bash", "/bin/bash", "-c", | 31 | Process pCmd( Process::Both, "/bin/bash", "/bin/bash", "-c", |
| 32 | lParams.first().getString().getStr(), NULL ); | 32 | lParams.first().getString().getStr(), NULL ); |
| 33 | FString sStdOut, sStdErr; | 33 | FString sStdOut, sStdErr; |
| 34 | while( pCmd.isRunning() ) | 34 | do |
| 35 | { | 35 | { |
| 36 | char buf[4096]; | 36 | char buf[4096]; |
| 37 | bool out, err; | 37 | bool out, err; |
| @@ -49,6 +49,7 @@ Variable FunctionExecute::call( Variable &/*input*/, VarList lParams ) | |||
| 49 | //sio << "Read " << iRead << " bytes of stdout." << sio.nl; | 49 | //sio << "Read " << iRead << " bytes of stdout." << sio.nl; |
| 50 | } | 50 | } |
| 51 | } | 51 | } |
| 52 | while( pCmd.isRunning() ); | ||
| 52 | 53 | ||
| 53 | pContext->getView()->cmdFinished( | 54 | pContext->getView()->cmdFinished( |
| 54 | sStdOut, sStdErr, pCmd.childExitStatus() | 55 | sStdOut, sStdErr, pCmd.childExitStatus() |
