I have used select call in my prog and it works on most of unix flavors. However, It works on one HPUX ia64 box but another it timeout immediately.
After several re-builds, I understood that i have set tv_sec but not set tv_usec of timeval structure. After setting tv_usec member of timeval structure to 0, it start working on all platform.
But, I didn't understood the reason for why program was behaving differently for same OS ? and how problem solved only by settting tm.tv_usec = 0
?