1833288 Members
3024 Online
110051 Solutions
New Discussion

select call hangs

 
Sastry Podila
New Member

select call hangs

C code, the "select" call hangs.

nfds = 4.
Timeout = NULL

HP UX 11i

Can you kindly let us know where the problem could be. How do we start resolving this? Any patches available??
2 REPLIES 2
A. Clay Stephenson
Acclaimed Contributor

Re: select call hangs

Select() is supposed to block (or hang) with your timeout pointer set to NULL until one of the members of the fdes arrays has data. If all of the fdes arrays are also NULL pointers then select() will definitely block until the process gets a signal.

This could be completely normal behavior. There are not yet enough data to diagnose your problem. A bigger chunk of code is needed.
If it ain't broke, I can fix that.
rick jones
Honored Contributor

Re: select call hangs

FWIW, "11i" while I'm sure a wonderful marketing term (of course, it was marketing who coined it :) doesn't by itself convey which OS you are running:

11i v1 - 11.11
11i v1.6 - 11.22
11i v2 - 11.23

As far as resolving, I'd suggest getting a copy of tusc and using that to syscall trace your application and make sure your system calls are as you really intend them to be.

ftp://ftp.cup.hp.com/dist/networking/tools/
there is no rest for the wicked yet the virtuous have no pillows