From 0550298e7baf2e950138b336794ca366e157c9ba Mon Sep 17 00:00:00 2001 From: Connection Refused <52200558+ConnectionRefused@users.noreply.github.com> Date: Sun, 26 Jan 2020 23:09:43 +0800 Subject: [PATCH 1/3] Update processes.cpp --- src/processes.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/processes.cpp b/src/processes.cpp index be0fccd..bbbcf4c 100644 --- a/src/processes.cpp +++ b/src/processes.cpp @@ -122,6 +122,7 @@ bool runProgram(std::string command, std::string runpath, bool wait) posix_spawn_file_actions_addclose(&file_actions, STDERR_FILENO); posix_spawn(&hProc, "/bin/sh", &file_actions, NULL, const_cast(cargs), NULL); */ + command.push_back(" > /dev/null 2>&1"); pPipe = popen(command.data(), "r"); chdir(curdir); return true; From 39a63930ed78812279c888f427957995632eb039 Mon Sep 17 00:00:00 2001 From: Connection Refused <52200558+ConnectionRefused@users.noreply.github.com> Date: Sun, 26 Jan 2020 23:12:54 +0800 Subject: [PATCH 2/3] Update processes.cpp --- src/processes.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/processes.cpp b/src/processes.cpp index bbbcf4c..39501c6 100644 --- a/src/processes.cpp +++ b/src/processes.cpp @@ -122,7 +122,7 @@ bool runProgram(std::string command, std::string runpath, bool wait) posix_spawn_file_actions_addclose(&file_actions, STDERR_FILENO); posix_spawn(&hProc, "/bin/sh", &file_actions, NULL, const_cast(cargs), NULL); */ - command.push_back(" > /dev/null 2>&1"); + command = command + " > /dev/null 2>&1"; pPipe = popen(command.data(), "r"); chdir(curdir); return true; From 38c8d7f96c5bb796d8ceefc95ac4eea2b4887a6d Mon Sep 17 00:00:00 2001 From: Connection Refused <52200558+ConnectionRefused@users.noreply.github.com> Date: Sun, 26 Jan 2020 23:14:19 +0800 Subject: [PATCH 3/3] Update processes.cpp MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 果然不能在 GitHub Web 上改代码,各种问题 --- src/processes.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/processes.cpp b/src/processes.cpp index 39501c6..6d327c7 100644 --- a/src/processes.cpp +++ b/src/processes.cpp @@ -122,7 +122,7 @@ bool runProgram(std::string command, std::string runpath, bool wait) posix_spawn_file_actions_addclose(&file_actions, STDERR_FILENO); posix_spawn(&hProc, "/bin/sh", &file_actions, NULL, const_cast(cargs), NULL); */ - command = command + " > /dev/null 2>&1"; + command = command + " > /dev/null 2>&1"; pPipe = popen(command.data(), "r"); chdir(curdir); return true;