LibWebView+LibCore: Manage process lifecycle using a SIGCHLD handler

This large commit also refactors LibWebView's process handling to use
a top-level Application class that uses a new WebView::Process class to
encapsulate the IPC-centric nature of each helper process.
This commit is contained in:
Andrew Kaster 2024-06-29 22:24:01 -06:00 committed by Alexander Kalenik
commit 4cc3d598f9
Notes: sideshowbarker 2024-07-17 06:51:10 +09:00
24 changed files with 382 additions and 196 deletions

View file

@ -74,6 +74,7 @@ public:
}
static ErrorOr<Process> spawn(ProcessSpawnOptions const& options);
static Process current();
// FIXME: Make the following 2 functions return Process instance or delete them.
static ErrorOr<pid_t> spawn(StringView path, ReadonlySpan<ByteString> arguments, ByteString working_directory = {}, KeepAsChild keep_as_child = KeepAsChild::No);