mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 08:36:15 +00:00
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:
committed by
Alexander Kalenik
parent
3dea602d92
commit
4cc3d598f9
@@ -64,6 +64,13 @@ struct ArgvList {
|
||||
}
|
||||
};
|
||||
|
||||
Process Process::current()
|
||||
{
|
||||
auto p = Process { getpid() };
|
||||
p.m_should_disown = false;
|
||||
return p;
|
||||
}
|
||||
|
||||
ErrorOr<Process> Process::spawn(ProcessSpawnOptions const& options)
|
||||
{
|
||||
#define CHECK(invocation) \
|
||||
|
||||
Reference in New Issue
Block a user