"select" returns error "Bad file descriptor" when called with a copy of "svc_fdset" (defined at "rpc.h") as it's readfds argument

Lev Pliner pliner@sky.ru
Mon Jun 28 12:24:00 GMT 2004


Dear forum users.

I once again ask you to help me to solve my problem. I attached an easy
example that works under Linux and FreeBSD.

The example consists of a trivial rpc program with no procedures. When it's
executed without any parameters in a command line it uses svc_run procedure
to enter the loop in which rpc requests being handled. When it's executed
with any parameter it implements the mentioned loop using "select" and
"svc_getreqset". Only when the program is executed under cygwin in that
second mode "select" returnes error "Bad file descriptor".

Lev.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cygcheck.out
Type: application/octet-stream
Size: 39580 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20040628/55601c96/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: probe.c
Type: application/octet-stream
Size: 1460 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20040628/55601c96/attachment-0001.obj>
-------------- next part --------------
--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


More information about the Cygwin mailing list