From a17cea8b8c739da23617da20aaa04d8b58dead79 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Sat, 12 Apr 2025 17:47:22 +0100 Subject: [PATCH] asyncDialogBox: fix missing pid fixes #10056 --- src/helpers/AsyncDialogBox.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/helpers/AsyncDialogBox.cpp b/src/helpers/AsyncDialogBox.cpp index 3010d10e..73bae8f6 100644 --- a/src/helpers/AsyncDialogBox.cpp +++ b/src/helpers/AsyncDialogBox.cpp @@ -99,14 +99,14 @@ void CAsyncDialogBox::open(std::function onResolution) { m_selfReference = m_selfWeakReference.lock(); - m_dialogPid = proc.pid(); - if (!proc.runAsync()) { Debug::log(ERR, "CAsyncDialogBox::open: failed to run async"); wl_event_source_remove(m_readEventSource); return; } + m_dialogPid = proc.pid(); + // close the write fd, only the dialog owns it now close(outPipe[1]); }