Browse Source

A minor fix to process comments.

merge-requests/365/head
eidheim 10 years ago
parent
commit
800ab3486c
  1. 2
      src/process.h
  2. 2
      src/process_win.cc

2
src/process.h

@ -14,7 +14,7 @@
///Create a new process given command and run path. ///Create a new process given command and run path.
///Note: on Windows it seems impossible to specify which pipes to use. ///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. ///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. ///Compile with -DMSYS_PROCESS_USE_SH to run command using "sh -c [command]" on Windows as well.
class Process { class Process {

2
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. //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. //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) { Process::id_type Process::open(const std::string &command, const std::string &path) {
if(open_stdin) if(open_stdin)
stdin_fd=std::unique_ptr<fd_type>(new fd_type); stdin_fd=std::unique_ptr<fd_type>(new fd_type);

Loading…
Cancel
Save