Fixed issue #5109. Console stops echoing typed keys after running a coreclr program.
authorMike McLaughlin <mikem@microsoft.com>
Thu, 7 Jan 2016 20:30:17 +0000 (12:30 -0800)
committerMike McLaughlin <mikem@microsoft.com>
Thu, 7 Jan 2016 20:30:17 +0000 (12:30 -0800)
commite7467226a0c552cea5c431233e2a117253d6d22c
treef9c8216eccd4622fc7e10b7db82cf40de65fa71a
parentd8e21852f1b5be330243154c9da45fcd51d59cc0
Fixed issue #5109.  Console stops echoing typed keys after running a coreclr program.

The DbgTransportSession/TwoWayPipe code was closing handle 0 (stdout) because the DbgTransportSession class wasn't being zero init'ed via a memset. The TwoWayPipe code initialized the pipe handles to -1.  The fix is to reinitialized the TwoWayPipe by calling the constructor. Even though it is overkill also checked for 0 in the Disconnect code that closes the pipes.
src/debug/debug-pal/unix/twowaypipe.cpp
src/debug/shared/dbgtransportsession.cpp