Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 7487889

Browse files
author
Mike McLaughlin
authored
Fix the hang in the debugger tests repo on OS X. (#6079)
The transport pipe closes during shudown where blocked/deadlocked with the pending read on the transport thread.
1 parent 9ceb6b6 commit 7487889

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/debug/debug-pal/unix/twowaypipe.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -162,18 +162,6 @@ bool TwoWayPipe::Disconnect()
162162
// since it is called from signal handlers.
163163
// That includes ASSERT and TRACE macros.
164164

165-
if (m_outboundPipe != INVALID_PIPE && m_outboundPipe != 0)
166-
{
167-
close(m_outboundPipe);
168-
m_outboundPipe = INVALID_PIPE;
169-
}
170-
171-
if (m_inboundPipe != INVALID_PIPE && m_inboundPipe != 0)
172-
{
173-
close(m_inboundPipe);
174-
m_inboundPipe = INVALID_PIPE;
175-
}
176-
177165
if (m_state == ServerConnected || m_state == Created)
178166
{
179167
unlink(m_inPipeName);

0 commit comments

Comments
 (0)