aboutsummaryrefslogtreecommitdiff
path: root/lib/System/Unix
diff options
context:
space:
mode:
authorMikhail Glushenkov <foldr@codedgers.com>2010-10-28 19:32:53 +0000
committerMikhail Glushenkov <foldr@codedgers.com>2010-10-28 19:32:53 +0000
commit7289d06e4824060247ab449e1b56f3e1a9e6073c (patch)
tree033f79bde848c9f77368015269c77255cd1f1773 /lib/System/Unix
parent3d0fe853d329d02dc4c9230976f3565848445da3 (diff)
Trailing whitespace.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117581 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/System/Unix')
-rw-r--r--lib/System/Unix/Program.inc8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/System/Unix/Program.inc b/lib/System/Unix/Program.inc
index bbb029c4f3..110a6d14f4 100644
--- a/lib/System/Unix/Program.inc
+++ b/lib/System/Unix/Program.inc
@@ -196,7 +196,7 @@ Program::Execute(const Path &path, const char **args, const char **envp,
*redirects[1] != *redirects[2]) {
// Just redirect stderr
if (RedirectIO_PS(redirects[2], 2, ErrMsg, FileActions)) return false;
- } else {
+ } else {
// If stdout and stderr should go to the same place, redirect stderr
// to the FD already open for stdout.
if (int Err = posix_spawn_file_actions_adddup2(&FileActions, 1, 2))
@@ -217,17 +217,17 @@ Program::Execute(const Path &path, const char **args, const char **envp,
pid_t PID = 0;
int Err = posix_spawn(&PID, path.c_str(), &FileActions, /*attrp*/0,
const_cast<char **>(args), const_cast<char **>(envp));
-
+
posix_spawn_file_actions_destroy(&FileActions);
if (Err)
return !MakeErrMsg(ErrMsg, "posix_spawn failed", Err);
-
+
Data_ = reinterpret_cast<void*>(PID);
return true;
}
#endif
-
+
if (!path.canExecute()) {
if (ErrMsg)
*ErrMsg = path.str() + " is not executable";