Fix the named semaphore leak on OSX (and Linux) (dotnet/coreclr#5269)
authorMike McLaughlin <mikem@microsoft.com>
Sat, 28 May 2016 03:03:32 +0000 (20:03 -0700)
committerMike McLaughlin <mikem@microsoft.com>
Sat, 28 May 2016 03:03:32 +0000 (20:03 -0700)
commitc431ff51e83411b5aede7c59b1b7aefc7ddf0cb5
tree5b9c40adafe6c405f260230fb1a0f2e5db903a2f
parentaabd735a517ed60a18d24512fe8670b93a548848
Fix the named semaphore leak on OSX (and Linux) (dotnet/coreclr#5269)

* Change the dbgshim launch handshake back.

The debugger side now creates the name semaphores like before and the transport pipe
existence determines that coreclr is ready.

Changed when the transport pipes are created: synchronously on the main thread.

Correctly set and check the HAVE_PROCFS_* defines.

* Code review feedback.

Commit migrated from https://github.com/dotnet/coreclr/commit/5ac6af932fe2a3f4b285b6dcc79010caf807ea9d
src/coreclr/src/debug/debug-pal/unix/twowaypipe.cpp
src/coreclr/src/debug/ee/debugger.cpp
src/coreclr/src/debug/inc/twowaypipe.h
src/coreclr/src/debug/shared/dbgtransportsession.cpp
src/coreclr/src/inc/clrconfigvalues.h
src/coreclr/src/pal/inc/pal.h
src/coreclr/src/pal/src/config.h.in
src/coreclr/src/pal/src/configure.cmake
src/coreclr/src/pal/src/thread/process.cpp