Skip to content

Commit

Permalink
RunReadWrite semaphore deadlock on close resolved
Browse files Browse the repository at this point in the history
svn path=/trunk/yarp2/; revision=9465
  • Loading branch information
ale-git committed Sep 20, 2012
1 parent c48913a commit c621c6a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/libYARP_OS/src/RunReadWrite.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,10 @@ void RunReadWrite::close()
{
CHECK_ENTER("RunReadWrite::close")

if (mClosed) return;

#if !defined(WIN32)

mDone.wait();
CHECKPOINT()

Expand Down Expand Up @@ -485,7 +488,7 @@ static void rwSigintHandler(int sig)
CHECK_EXIT()
}

#if !defined(WIN32) && !defined(WIN64)
#if !defined(WIN32)
static void sighupHandler(int sig)
{
CHECK_ENTER("sighupHandler")
Expand Down

0 comments on commit c621c6a

Please sign in to comment.