Open Bug 1802559 Opened 1 year ago Updated 1 year ago

base::LaunchApp can make zombie processes on Unix

Categories

(Core :: IPC, defect, P3)

defect

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.

P3 because there are no users that require this to work.

Severity: -- → S4
Component: Security: Process Sandboxing → IPC
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.