[torquedev] Problem with TM interface in Torque 2.1.0p0

garrick at speculation.org garrick at speculation.org
Fri May 19 17:44:43 MDT 2006


On Fri, May 19, 2006 at 07:17:28PM -0400, garrick at speculation.org alleged:
> On Fri, May 19, 2006 at 06:06:18PM -0400, garrick at speculation.org alleged:
> > On Fri, May 19, 2006 at 07:02:55AM -0400, Jeff Squyres (jsquyres) alleged:
> > > aon062:~/tmp jsquyres$ pbsdsh hostname
> > > pbsdsh: tm_nodeinfo failed, rc = TM_ESYSTEM (17000)
> > > 
> > > Doh.  :(
> > 
> > I can reproduce this on OSX.  Definitely something broken.
> 
> The new poll() support in src/lib/Libifl?tcp_dis.c isn't working on OSX.  
> Something weird is happening with the timeout arg.
> 
> Just comment out HAVE_POLL in src/include/pbs_config.h for now and it
> should work fine.

Fixed in torque-2.1.1-snap.200605191740.tar.gz

poll()'s timeout was overflowing to a negative number.  Linux poll()
interprets all negative values as no timeout.  OSX's poll() interprets
-1 as no timeout and all other negative timeouts cause error with
EINVAL.  So I added overflow checking and it should work correctly now.

Sorry about that!



More information about the torquedev mailing list