/* This function fixes a bug in Solaris concerning posix threads and busy loops. */ #include void donothing() { struct timeval tv; tv.tv_sec = 0; tv.tv_usec = 1; select(0,NULL,NULL,NULL,&tv); } // sleepwait