search for: redirectio

Displaying 3 results from an estimated 3 matches for "redirectio".

Did you mean: redirection
2009 Jul 17
3
[LLVMdev] [PATCH 1/2] Trailing whitespace.
...unsigned secondsToWait, unsigned memoryLimit, - std::string* ErrMsg) + std::string* ErrMsg) { if (!path.canExecute()) { if (ErrMsg) @@ -174,7 +174,7 @@ Program::ExecuteAndWait(const Path& path, if (RedirectIO(redirects[0], 0, ErrMsg)) { return -1; } // Redirect stdout if (RedirectIO(redirects[1], 1, ErrMsg)) { return -1; } - if (redirects[1] && redirects[2] && + if (redirects[1] && redirects[2] && *(redirects[1]) == *(redirect...
2009 Jul 17
1
[LLVMdev] [PATCH 2/2] Make Program::ExecuteNoWait return a process ID.
...occured: Return to the caller. case -1: MakeErrMsg(ErrMsg, "Couldn't fork"); - return; + return 0; // Child process: Execute the program. case 0: { // Redirect file descriptors... if (redirects) { // Redirect stdin - if (RedirectIO(redirects[0], 0, ErrMsg)) { return; } + if (RedirectIO(redirects[0], 0, ErrMsg)) { return 0; } // Redirect stdout - if (RedirectIO(redirects[1], 1, ErrMsg)) { return; } + if (RedirectIO(redirects[1], 1, ErrMsg)) { return 0; } if (redirects[1] && redire...
2009 Jul 17
0
[LLVMdev] [PATCH 2/2] Make Program::ExecuteNoWait return a process ID.
...-1: >       MakeErrMsg(ErrMsg, "Couldn't fork"); > -      return; > +      return 0; > >     // Child process: Execute the program. >     case 0: { >       // Redirect file descriptors... >       if (redirects) { >         // Redirect stdin > -        if (RedirectIO(redirects[0], 0, ErrMsg)) { return; } > +        if (RedirectIO(redirects[0], 0, ErrMsg)) { return 0; } >         // Redirect stdout > -        if (RedirectIO(redirects[1], 1, ErrMsg)) { return; } > +        if (RedirectIO(redirects[1], 1, ErrMsg)) { return 0; } >         if (redirec...