[omniORB] in case of POLLERR

Masaaki Sekiya sekiya at ydc.co.jp
Thu Nov 27 21:13:04 GMT 2008


Hi.
I can't get any comments before. so now I've posted again.

orbcore/tcp/tcpAddress.cc :L261-264  is as below.

    int rc = poll(&fds,1,timeout);
    if (rc > 0 && fds.revents & POLLERR) {
      rc = 0;
    }
    
Why is "rc" set to 0 , when poll results in POLLERR ?
The value of "rc" equals zero means poll resulted in timeouts.
I think setting "rc" to zero without timeouts causes 
many loop without system idle and huge CPU consumption.
Is it no problem ?

It is related to e-mail:[Subject: Remote methods blocks]
which I posted before.

Thanks



More information about the omniORB-list mailing list