Skip to content

Commit

Permalink
Fix errors relating to normal poll() usage (only MacOS affected).
Browse files Browse the repository at this point in the history
  • Loading branch information
abh3 committed Jan 30, 2014
1 parent e5b9986 commit 2aaa7ec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/XrdSys/XrdSysIOEvents.hh
Expand Up @@ -475,8 +475,10 @@ struct PipeData {char req; char evt; short ent; int fd;
XrdSysSemaphore *theSem;
enum cmd {NoOp = 0, MdFD = 1, Post = 2,
MiFD = 3, RmFD = 4, Stop = 5};
PipeData(char rqv=0) : req(rqv), evt(0), ent(0), fd(0),
theSem(0) {}
PipeData(char reQ=0, char evT=0, short enT=0,
int fD =0, XrdSysSemaphore *sP=0)
: req(reQ), evt(evT), ent(enT), fd(fD),
theSem(sP) {}
~PipeData() {}
};
PipeData reqBuff; // Buffer used by poller thread to recv data
Expand Down
2 changes: 1 addition & 1 deletion src/XrdSys/XrdSysIOEventsPollPoll.icc
Expand Up @@ -278,7 +278,7 @@ void XrdSys::IOEvents::PollPoll::Exclude(XrdSys::IOEvents::Channel *cP,
{FDRem(ctnum);
return;
} else {
PipeData cmdbuff = {(char)PipeData::RmFD,0,(short)ctnum,cP->GetFD(),0};
PipeData cmdbuff((char)PipeData::RmFD,0,(short)ctnum,cP->GetFD());
if (isLocked) {isLocked = false; UnLockChannel(cP);}
SendCmd(cmdbuff);
}
Expand Down

0 comments on commit 2aaa7ec

Please sign in to comment.