aboutsummaryrefslogtreecommitdiff
path: root/source/Host/posix/ProcessLauncherPosix.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/Host/posix/ProcessLauncherPosix.cpp')
-rw-r--r--source/Host/posix/ProcessLauncherPosix.cpp21
1 files changed, 11 insertions, 10 deletions
diff --git a/source/Host/posix/ProcessLauncherPosix.cpp b/source/Host/posix/ProcessLauncherPosix.cpp
index dd5c5121a97b..f90bf0cd88a2 100644
--- a/source/Host/posix/ProcessLauncherPosix.cpp
+++ b/source/Host/posix/ProcessLauncherPosix.cpp
@@ -7,9 +7,9 @@
//
//===----------------------------------------------------------------------===//
+#include "lldb/Host/posix/ProcessLauncherPosix.h"
#include "lldb/Host/Host.h"
#include "lldb/Host/HostProcess.h"
-#include "lldb/Host/posix/ProcessLauncherPosix.h"
#include "lldb/Target/ProcessLaunchInfo.h"
@@ -19,15 +19,16 @@ using namespace lldb;
using namespace lldb_private;
HostProcess
-ProcessLauncherPosix::LaunchProcess(const ProcessLaunchInfo &launch_info, Error &error)
-{
- lldb::pid_t pid;
- char exe_path[PATH_MAX];
+ProcessLauncherPosix::LaunchProcess(const ProcessLaunchInfo &launch_info,
+ Error &error) {
+ lldb::pid_t pid;
+ char exe_path[PATH_MAX];
- launch_info.GetExecutableFile().GetPath(exe_path, sizeof(exe_path));
+ launch_info.GetExecutableFile().GetPath(exe_path, sizeof(exe_path));
- // TODO(zturner): Move the code from LaunchProcessPosixSpawn to here, and make MacOSX re-use this
- // ProcessLauncher when it wants a posix_spawn launch.
- error = Host::LaunchProcessPosixSpawn(exe_path, launch_info, pid);
- return HostProcess(pid);
+ // TODO(zturner): Move the code from LaunchProcessPosixSpawn to here, and make
+ // MacOSX re-use this
+ // ProcessLauncher when it wants a posix_spawn launch.
+ error = Host::LaunchProcessPosixSpawn(exe_path, launch_info, pid);
+ return HostProcess(pid);
}