[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: FW: Bug#641832: bizarre behavior of timer_settime on kfbsd



On Fri, Sep 16, 2011 at 10:20:10PM +0200, Petr Salinger wrote:
"true" sometimes exits too fast, "sleep 0.1" suffices.
Due to userspace implementation (via pthread_cond_timedwait),
/bin/true might end even before the signal is delivered.

BTW, I just verified, only kfreebsd-i386 is affected,
kfreebsd-amd64 (with 64-bit time_t) works fine.

That makes sense. I think for now for coreutils I'll just ignore fractional timestamps for values over 100000s on kfbsd (after a day, who really needs a fractional second?) I'll also clone the bug over to libc for a better fix, as I think it really needs to be handled there because trying to work around the problem means making assumptions about the implementation that I'm not sure are/will be valid.

Mike Stone


Reply to: