Skip to content
Snippets Groups Projects
Commit 23e4f590 authored by Gerardo Ganis's avatar Gerardo Ganis
Browse files

Fix problem with checking a file descriptor

git-svn-id: http://root.cern.ch/svn/root/trunk@24796 27541ba8-7e3a-0410-8455-c3a389f83636
parent 96cbb66d
No related branches found
No related tags found
No related merge requests found
......@@ -49,8 +49,8 @@
if (!fLink) { \
TRACE(XERR, "link is undefined! "); \
return 0; \
} else if (fLink->FDnum() <= 0) { \
TRACE(XERR, "link descriptor invalid! " << fLink->FDnum()); \
} else if (fLink->FDnum() < 0) { \
TRACE(XERR, "link descriptor invalid for link "<<fLink<<"! ("<< fLink->FDnum()<<")"); \
return 0; \
}
......@@ -621,11 +621,21 @@ void XrdProofdResponse::GetSID(unsigned short &sid)
void XrdProofdResponse::Set(XrdLink *l)
{
// Set the link to be used by this response
XPDLOC(RSP, "Response::Set")
{ XrdSysMutexHelper mh(fMutex);
fLink = l;
}
GetSID(fSID);
if (fLink) {
if (fLink->FDnum() < 0) {
TRACE(XERR, "link descriptor invalid for link "<<fLink<<"! ("<< fLink->FDnum()<<")");
} else {
TRACE(DBG,"using link "<<fLink<<", descriptor:"<<fLink->FDnum());
}
} else {
TRACE(XERR,"link is undefined!");
}
}
//______________________________________________________________________________
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment