summaryrefslogtreecommitdiff
path: root/src/organizerproxy.cpp
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2019-10-31 05:19:14 -0400
committerisanae <14251494+isanae@users.noreply.github.com>2019-11-06 07:45:00 -0500
commit7ebd4debeef2cfdf268679e7b680021d3dc20687 (patch)
treec7b0db1ce098d2ac94aa6e61cd5f926465545f7e /src/organizerproxy.cpp
parent9ff8a471aaf9a696610a055c091de39c41f985b7 (diff)
added a ForceWait flag to bypass disabled locking
merged a bunch of unnecessary functions in ProcessRunner
Diffstat (limited to 'src/organizerproxy.cpp')
-rw-r--r--src/organizerproxy.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/organizerproxy.cpp b/src/organizerproxy.cpp
index 0b6f8df1..420e2d82 100644
--- a/src/organizerproxy.cpp
+++ b/src/organizerproxy.cpp
@@ -128,7 +128,9 @@ HANDLE OrganizerProxy::startApplication(
.setFromFileOrExecutable(exe, args, cwd, profile, overwrite, ignoreOverwrite)
.run();
- return runner.processHandle();
+ // the plugin is in charge of closing the handle, unless waitForApplication()
+ // is called on it
+ return runner.stealProcessHandle().release();
}
bool OrganizerProxy::waitForApplication(HANDLE handle, LPDWORD exitCode) const
@@ -142,7 +144,7 @@ bool OrganizerProxy::waitForApplication(HANDLE handle, LPDWORD exitCode) const
auto runner = m_Proxied->processRunner();
const auto r = runner
- .setWaitForCompletion(ProcessRunner::NoRefresh, LockWidget::OutputRequired)
+ .setWaitForCompletion(ProcessRunner::ForceWait, LockWidget::OutputRequired)
.attachToProcess(handle);
if (exitCode) {