Bug 1794581 Comment 22 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

Hmmmm. In that case the only thing I can think of is that somehow Thunderbird is not setting `JOB_OBJECT_LIMIT_BREAKAWAY_OK` when creating a job, per the flag description: https://learn.microsoft.com/en-us/windows/win32/procthread/process-creation-flags#flags

>The child processes of a process associated with a job are not associated with the job.
If the calling process is not associated with a job, this constant has no effect. If the calling process is associated with a job, the job must set the JOB_OBJECT_LIMIT_BREAKAWAY_OK limit.

Could you try adding [this function](https://searchfox.org/comm-central/rev/05f486c76f84830041e51b7c68e3e697dc768454/mozilla/toolkit/xre/nsWindowsRestart.cpp#74-109) to `mozilla/ipc/chromium/src/base/process_util_win.cc` and call it from https://searchfox.org/comm-central/rev/bc947827a7df614d5e49fffe0026bd5a030b1a93/mozilla/ipc/chromium/src/base/process_util_win.cc#297 ? printf for each branch can probably help.

I'll also try getting some time to investigate.
Hmmmm. In that case the only thing I can think of is that somehow Thunderbird is not setting `JOB_OBJECT_LIMIT_BREAKAWAY_OK` when creating a job, per the flag description: https://learn.microsoft.com/en-us/windows/win32/procthread/process-creation-flags#flags

>The child processes of a process associated with a job are not associated with the job.
If the calling process is not associated with a job, this constant has no effect. If the calling process is associated with a job, the job must set the JOB_OBJECT_LIMIT_BREAKAWAY_OK limit.

Could you try adding [this function](https://searchfox.org/comm-central/rev/05f486c76f84830041e51b7c68e3e697dc768454/mozilla/toolkit/xre/nsWindowsRestart.cpp#74-109) to `mozilla/ipc/chromium/src/base/process_util_win.cc`, call it from https://searchfox.org/comm-central/rev/bc947827a7df614d5e49fffe0026bd5a030b1a93/mozilla/ipc/chromium/src/base/process_util_win.cc#297 and check the result? printf for each branch can probably help.

I'll also try getting some time to investigate.
Hmmmm. In that case the only thing I can think of is that somehow Thunderbird is not setting `JOB_OBJECT_LIMIT_BREAKAWAY_OK` when creating a job, per the flag description: https://learn.microsoft.com/en-us/windows/win32/procthread/process-creation-flags#flags

>The child processes of a process associated with a job are not associated with the job.
If the calling process is not associated with a job, this constant has no effect. If the calling process is associated with a job, the job must set the JOB_OBJECT_LIMIT_BREAKAWAY_OK limit.

Could you try adding [this function](https://searchfox.org/comm-central/rev/05f486c76f84830041e51b7c68e3e697dc768454/mozilla/toolkit/xre/nsWindowsRestart.cpp#74-109) to `mozilla/ipc/chromium/src/base/process_util_win.cc`, call it from https://searchfox.org/comm-central/rev/bc947827a7df614d5e49fffe0026bd5a030b1a93/mozilla/ipc/chromium/src/base/process_util_win.cc#297 and check the result? printf for each branch will help.

I'll also try getting some time to investigate.
Hmmmm. In that case the only thing I can think of is that somehow Thunderbird is not setting `JOB_OBJECT_LIMIT_BREAKAWAY_OK` when creating a job, per the flag description: https://learn.microsoft.com/en-us/windows/win32/procthread/process-creation-flags#flags

>The child processes of a process associated with a job are not associated with the job.
If the calling process is not associated with a job, this constant has no effect. If the calling process is associated with a job, the job must set the JOB_OBJECT_LIMIT_BREAKAWAY_OK limit.

Could you try adding [this function](https://searchfox.org/comm-central/rev/05f486c76f84830041e51b7c68e3e697dc768454/mozilla/toolkit/xre/nsWindowsRestart.cpp#74-109) to `mozilla/ipc/chromium/src/base/process_util_win.cc`, call it from https://searchfox.org/comm-central/rev/d99c2ec689b941ae120776f423726f59875957a5/mozilla/ipc/chromium/src/base/process_util_win.cc#297 and check the result? printf for each branch will help.

I'll also try getting some time to investigate.

Back to Bug 1794581 Comment 22