Closed Bug 1336188 Opened 9 years ago Closed 9 years ago

Firefox closes child processes' tree

Categories

(Add-on SDK Graveyard :: General, defect)

Unspecified
Windows 10
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: alervdvcw, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:51.0) Gecko/20100101 Firefox/51.0 Build ID: 20170125094131 Steps to reproduce: I use sdk/child_process in my extension. Actual results: On exit, Firefox kills this process including all the process it has created.
OS: Unspecified → Windows 10
Could you please be more clear about the steps you used to reproduce this bug and the expected results?
Component: Untriaged → WebExtensions: Developer Tools
Product: Firefox → Toolkit
In our extension we use this API to create our process: https://developer.mozilla.org/en-US/Add-ons/SDK/Low-Level_APIs/system_child_process This process can create another process. Firefox kills this another process on shutdown. I expect it to not kill that process, because it did not create it!
Although the documentation is for the corresponding webextensions API, not the SDK, see the notes at: https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Native_messaging#Closing_the_native_app
Component: WebExtensions: Developer Tools → General
Product: Toolkit → Add-on SDK
Version: 51 Branch → unspecified
It's OK that Firefox closes my native application. But it is NOT that it ALSO closes another process created by my native application. Is it really so hard to understand?
Please keep your comments polite. I doubt that it is Firefox explicitly searching for and killing and spawned processes, it is the underlying operating system. This is explained at the link in comment 3.
OK, sorry. Yes, it seems you're right... We use the same native app for both Firefox and Chrome, and issue does not reproduce with Chrome. That why I thought it's Firefox closing the process. But I tested it on another app and the issue does not reproduce with Firefox... I'll write here as soon as I understand the reason.
Ahh... Finally I've read the notes in that link... OK, it seems this "bug" report can be closed. Our another app uses COM to create a process. It seems that COM sets this CREATE_BREAKAWAY_FROM_JOB automatically. That's why it works there.
Status: UNCONFIRMED → RESOLVED
Closed: 9 years ago
Resolution: --- → INVALID
Andrew, thanks for help.
You need to log in before you can comment on or make changes to this bug.