Re: 2.6-test6: nanosleep+SIGCONT weirdness

From: Linus Torvalds
Date: Sat Nov 08 2003 - 13:33:28 EST



On Sat, 8 Nov 2003, Denis wrote:
>
> I observe some strange behaviour in 2.6-test6 with this small program:

Good catch.

That nanosleep restart seems to be broken, and quite frankly, looking at
the mess in kernel/posix-timers.c I'm not all that surprised. The code is
total and absolute crap. I have no idea how it's even supposed to work.

I suspect that it might just work right if you disable the nanosleep stuff
by undefining FOLD_NANO_SLEEP_INTO_CLOCK_NANO_SLEEP in <linux/signal.h>.
Because unlike the "folded" version in posix-timers.c, the original
version at least looks sane.

Linus

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/