I talked to a coworker yesterday who said he once had a test program
that worked with poll() but bombed
with select. After OS upgrades, neither works. Of course, his program
polled for GSN events. (I found a GSN link
at http://www.sgi.com/peripherals/networking/gsn_overview.html .) We
implement a poll with
the timeval structure set to zero in the select call, but we do this on
solaris and Cray as
well. (Of course Cray doesn't even support a poll - at least I couldn't
find a man page.)
Anyway, I don't have a good answer to your first
question. If I get the chance, I'll play with poll and see if I can
figure out why it's breaking.
BTW, has anyone used Event.pm on the Cray platform?
I think the #define is __sgi (note the two underscores). I'll double
check at work tonight.
Trey
Joshua N Pritikin wrote:
>
> On Fri, Jul 21, 2000 at 09:45:56AM -0400, [EMAIL PROTECTED] wrote:
> > That worked. Thanks!
>
> Should IRIX undef HAS_POLL by default?? How would this work?
>
> #ifdef IRIX
> # undef HAS_POLL
> #endif
>
> ?
>
> > Joshua N Pritikin wrote:
> > > On Wed, Jul 19, 2000 at 11:45:29AM -0400, [EMAIL PROTECTED] wrote:
> > > > How would one recompile Event.pm with select over poll? (I couldn't find
> > > > where the HAS_POLL was being set.)
> > >
> > > If you
> > >
> > > #undef HAS_POLL
> > >
> > > at the beginning of unix.c, that should do it. Hope this helps...
>
> --
> Never ascribe to malice that which can be explained by stupidity.
> (via, but not speaking for Deutsche Bank)