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

M. Warner Losh imp at bsdimp.com
Thu Feb 24 16:33:25 GMT 2005


In message: <20050224062755.6A3A143D72 at mx1.FreeBSD.org>
            "River" <river_robert at yahoo.com.cn> 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 affected by system time backward and all is OK.

This is a well know bug.  The problem is that the threading library
unwisely uses absolute times for the various events...

Warner


More information about the freebsd-hackers mailing list