asyncDialogBox: fix missing pid

fixes #10056
This commit is contained in:
Vaxry 2025-04-12 17:47:22 +01:00
parent 6538970087
commit a17cea8b8c

View File

@ -99,14 +99,14 @@ void CAsyncDialogBox::open(std::function<void(std::string)> 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]);
}