Skip to content

Commit

Permalink
Prevent deadlock during posix object shutdown (e.g. at main exit).
Browse files Browse the repository at this point in the history
  • Loading branch information
abh3 committed Nov 16, 2013
1 parent 5df0365 commit 4b06fd7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/XrdPosix/XrdPosixObject.cc
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ void XrdPosixObject::Shutdown()
if ((oP = myFiles[i]))
{myFiles[i] = 0;
if (oP->fdNum >= 0) close(oP->fdNum);
oP->fdNum = -1;
delete oP;
};
free(myFiles); myFiles = 0;
Expand Down

0 comments on commit 4b06fd7

Please sign in to comment.