Skip to content

Commit

Permalink
Merge pull request #1096 from xrootd/bugfix-1095
Browse files Browse the repository at this point in the history
[XrdSys] Avoid deadlock on poller stop, fixes #1095
  • Loading branch information
simonmichal committed Dec 9, 2019
2 parents ea85275 + f9d4223 commit 699946e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/XrdSys/XrdSysIOEvents.cc
Expand Up @@ -1018,7 +1018,9 @@ void XrdSys::IOEvents::Poller::Stop()

// First we must stop the poller thread in an orderly fashion.
//
adMutex.UnLock();
SendCmd(cmdbuff);
adMutex.Lock();

// Close the pipe communication mechanism
//
Expand Down

0 comments on commit 699946e

Please sign in to comment.