pal_signal: add missing mutex unlock when SIGCHLD==SIG_IGN#29843
pal_signal: add missing mutex unlock when SIGCHLD==SIG_IGN#29843stephentoub merged 1 commit intodotnet:masterfrom
Conversation
Child reapping was changed to be triggered by the SIGCHLD signal (dotnet#26291). As part of that change, code was added to handle the original handler being SIG_IGN. In that case, there was a missing mutex unlock. Fixes https://github.com/dotnet/corefx/issues/29841.
|
Some background: |
Isn't SIG_IGN the default disposition for SIGCHLD? |
) Child reapping was changed to be triggered by the SIGCHLD signal (dotnet#26291). As part of that change, code was added to handle the original handler being SIG_IGN. In that case, there was a missing mutex unlock. Fixes https://github.com/dotnet/corefx/issues/29841.
The naming is confusing. The default disposition is to ignore SIGCHLD (SIG_DFL), and this is different from when the disposition is set to SIG_IGN. From the man page: http://man7.org/linux/man-pages/man2/sigaction.2.html
|
…refx#29843) Child reapping was changed to be triggered by the SIGCHLD signal (dotnet/corefx#26291). As part of that change, code was added to handle the original handler being SIG_IGN. In that case, there was a missing mutex unlock. Fixes https://github.com/dotnet/corefx/issues/29841. Commit migrated from dotnet/corefx@50d6137
Child reapping was changed to be triggered by the SIGCHLD signal (#26291).
As part of that change, code was added to handle the original handler being SIG_IGN.
In that case, there was a missing mutex unlock.
Fixes https://github.com/dotnet/corefx/issues/29841.
cc: @wfurt @janvorli @mateusrodrigues