base::LaunchApp can make zombie processes on Unix
Categories
(Core :: IPC, defect, P3)
Tracking
()
People
(Reporter: saschanaz, Unassigned)
References
Details
See also: https://bugzilla.mozilla.org/show_bug.cgi?id=1794581#c9
The main problem I see on Unix is when we use this and the parent process isn't already shutting down; when the child process exits, it becomes a zombie process until the parent uses one of the wait* calls to collect it. So we'd either need something to monitor it and waitpid, or fork twice so the process is reparented to init (which will collect it). There are also the issues I mentioned if the child process inherits the browser's process group and/or controlling tty; that won't kill the process automatically when the rest of the app exits like what seems to be happening on Windows, but it could affect some users and it might not be the result we want.
Comment 1•2 years ago
|
||
P3 because there are no users that require this to work.
Description
•