-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Fix Process.Kill(entireProcessTree: true) when intermediate child has KillOnParentExit #128598
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
9e4a01d
2ae7675
b84f84c
e5c4476
f36dc80
aaddffb
03abc4d
44c0262
37bda74
a4430fd
be95880
ce45940
557013a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -507,7 +507,7 @@ void SystemNative_SetTerminalInvalidationHandler(TerminalInvalidationCallback ca | |||||||||||||||||||||
|
|
||||||||||||||||||||||
| installed = InstallSignalHandler(SIGCONT, SA_RESTART); | ||||||||||||||||||||||
| assert(installed); | ||||||||||||||||||||||
| installed = InstallSignalHandler(SIGCHLD, SA_RESTART); | ||||||||||||||||||||||
| installed = InstallSignalHandler(SIGCHLD, SA_RESTART | SA_NOCLDSTOP); | ||||||||||||||||||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. to other code reviewers: after making the code send DetailsWhich lead me to conclusion that if we use
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. From the above, my understanding is that we're adding runtime/src/native/libs/System.Native/pal_process.c Lines 1185 to 1194 in 402ed14
Fix lgtm. |
||||||||||||||||||||||
| assert(installed); | ||||||||||||||||||||||
| installed = InstallSignalHandler(SIGWINCH, SA_RESTART); | ||||||||||||||||||||||
| assert(installed); | ||||||||||||||||||||||
|
|
@@ -526,7 +526,7 @@ void SystemNative_RegisterForSigChld(SigChldCallback callback) | |||||||||||||||||||||
| { | ||||||||||||||||||||||
| g_sigChldCallback = callback; | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| installed = InstallSignalHandler(SIGCHLD, SA_RESTART); | ||||||||||||||||||||||
| installed = InstallSignalHandler(SIGCHLD, SA_RESTART | SA_NOCLDSTOP); | ||||||||||||||||||||||
| assert(installed); | ||||||||||||||||||||||
| } | ||||||||||||||||||||||
| pthread_mutex_unlock(&lock); | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
Uh oh!
There was an error while loading. Please reload this page.