ZaStoGram_desktop/Telegram/SourceFiles/platform/posix/widget_reaping_posix.h
John Preston 957dff3379 Share the widget helpers' process reaping on POSIX
Task: 2026/11/15/give-the-macos-widget-helper-a-quiet-descriptor-2-and-share-its-reaping-with-linux
2026-11-19 23:17:09 +04:00

31 lines
734 B
C++

/*
This file is part of Telegram Desktop,
the official desktop application for the Telegram messaging service.
For license and copyright information please follow this link:
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
*/
#pragma once
#include "platform/platform_widget_helper.h"
#include <sys/types.h>
#include <optional>
namespace Platform::WidgetHelper {
[[nodiscard]] QString DescribeStatus(int status);
[[nodiscard]] Completion CompleteWith(
crl::time exitWait,
crl::time killWait,
Fn<std::optional<Completion>(crl::time timeout)> waitExit,
Fn<QString()> sendKill);
[[nodiscard]] Completion CompleteChild(
pid_t pid,
crl::time exitWait,
crl::time killWait);
} // namespace Platform::WidgetHelper