You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Process.WaitForExit() deadlock when running multiple processes on linux with .net7 #80563
Running multiple processes concurrently using System.Diagnostics.Process causes a deadlock on linux with .net7. I checked this, but I believe it is something else.
Activity
adamsitnik commentedon Jan 13, 2023
@tmds is there any chance you could take a look?
tmds commentedon Jan 14, 2023
@kirnosenko you've only observed this issue in a container, right?
You can work around it by changing the entrypoint to something like:
#79817 fixes this and is backported for an upcoming 7.0 patch release.
kirnosenko commentedon Jan 14, 2023
@tmds yes I run it in container, unfortunately your suggestion makes no any difference, still has a deadlock.
tmds commentedon Jan 17, 2023
Ah, I thought it would be enough to make the .NET process have another pid than
1, but that's not true.If you add the
--initflag to thedocker runcommand (which adds an init process as pid 1), the deadlock disappears.#79817 fixes this issue.
adamsitnik commentedon Jan 18, 2023
@tmds thank you for your help!