Fix dotnet-dump/createdump launch failure (#25562)
authorMike McLaughlin <mikem@microsoft.com>
Thu, 4 Jul 2019 14:07:51 +0000 (07:07 -0700)
committerJan Kotas <jkotas@microsoft.com>
Thu, 4 Jul 2019 14:07:51 +0000 (07:07 -0700)
commit036e426e7fffa6b10c2347c61a030d3ed8eb428e
treea77563520dd3ef31e4f5306c97ddcce3ba68a34e
parenta985dda162403ec995c4752e194bc5a062f444a5
Fix dotnet-dump/createdump launch failure (#25562)

On CentOS or OpenSUSE dotnet-dump collect fails but a
valid coredump is generated. The "prctl()" call is failing
that gives the child createdump process permission to ptrace
to the runtime process. On CentOS/OpenSUSE the PR_SET_PTRACER
option isn't supported and not needed.

Issue: https://github.com/dotnet/diagnostics/issues/334
src/pal/src/thread/process.cpp