From 800ab3486c679636d001561bc8573a316a14ecbc Mon Sep 17 00:00:00 2001 From: eidheim Date: Fri, 4 Dec 2015 19:35:38 +0100 Subject: [PATCH] A minor fix to process comments. --- src/process.h | 2 +- src/process_win.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/process.h b/src/process.h index 88b69ab..989f4f1 100644 --- a/src/process.h +++ b/src/process.h @@ -14,7 +14,7 @@ ///Create a new process given command and run path. ///Note: on Windows it seems impossible to specify which pipes to use. -///Thus, if read_stdout=nullptr, read_stderr=nullptr and open_std=false, +///Thus, if read_stdout=nullptr, read_stderr=nullptr and open_stdin=false, ///the stdout, stderr and stdin are sent to the parent process instead. ///Compile with -DMSYS_PROCESS_USE_SH to run command using "sh -c [command]" on Windows as well. class Process { diff --git a/src/process_win.cc b/src/process_win.cc index c2798ff..3be6472 100644 --- a/src/process_win.cc +++ b/src/process_win.cc @@ -7,7 +7,7 @@ using namespace std; //TODO: remove //Based on the example at https://msdn.microsoft.com/en-us/library/windows/desktop/ms682499(v=vs.85).aspx. //Note: on Windows it seems impossible to specify which pipes to use. -//Thus, if read_stdout=nullptr, read_stderr=nullptr and open_std=false, the stdout, stderr and stdin are sent to the parent process instead. +//Thus, if read_stdout=nullptr, read_stderr=nullptr and open_stdin=false, the stdout, stderr and stdin are sent to the parent process instead. Process::id_type Process::open(const std::string &command, const std::string &path) { if(open_stdin) stdin_fd=std::unique_ptr(new fd_type);