Skip to content

Commit

Permalink
[XrdCl] Avoid segv on fork prepare.
Browse files Browse the repository at this point in the history
  • Loading branch information
simonmichal authored and gganis committed Nov 23, 2021
1 parent 10942d8 commit 4167a10
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/XrdCl/XrdClPollerBuiltIn.cc
Original file line number Diff line number Diff line change
Expand Up @@ -232,10 +232,11 @@ namespace XrdCl
for( it = pSocketMap.begin(); it != pSocketMap.end(); ++it )
{
PollerHelper *helper = (PollerHelper*)it->second;
Socket *socket = it->first;
if( !helper->channel ) continue;
bool status = helper->channel->Disable( Channel::allEvents, &errMsg );
if( !status )
{
Socket *socket = it->first;
log->Error( PollerMsg, "%s Unable to disable write notifications: %s",
socket->GetName().c_str(), errMsg );
}
Expand Down

0 comments on commit 4167a10

Please sign in to comment.