Re: "sleep" "select" system call not work correctly when linking with multithread libray--FreeBSD 4.5

2005-02-24 Thread M. Warner Losh
In message: <[EMAIL PROTECTED]> "River" <[EMAIL PROTECTED]> writes: : This is select testing program-- When time is set backward,the : program linked with "-pthread" option did not continue printing : anything. But using the program linked with standard library, : printing did not aff

"sleep" "select" system call not work correctly when linking with multithread libray--FreeBSD 4.5

2005-02-23 Thread River
Does anyone know why "sleep" "select" can not work correctly in FreeBSD 4.5 when the system time is set backward for a long time,i.e several hours. The behavior is: sleep or select will be blocked for a long time much longer than expected. Through testing, we found that these two system calls