http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60421
Dennis Lubert <plasmahh at gmx dot net> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |plasmahh at gmx dot net --- Comment #1 from Dennis Lubert <plasmahh at gmx dot net> --- Note that for me to reproduce this, _GLIBCXX_USE_NANOSLEEP must be defined. In that case it uses directly the nanosleep call, casting the uint64max value to time_t which is signed (which is unfortunately not visible in strace), gets negative and this is what the nonsleep manpage says for glibc: EINVAL The value in the tv_nsec field was not in the range 0 to 999999999 or tv_sec was negative.