Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261939AbTKHS3C (ORCPT ); Sat, 8 Nov 2003 13:29:02 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261959AbTKHS3C (ORCPT ); Sat, 8 Nov 2003 13:29:02 -0500 Received: from fw.osdl.org ([65.172.181.6]:37534 "EHLO mail.osdl.org") by vger.kernel.org with ESMTP id S261939AbTKHS3B (ORCPT ); Sat, 8 Nov 2003 13:29:01 -0500 Date: Sat, 8 Nov 2003 10:28:34 -0800 (PST) From: Linus Torvalds To: Denis cc: Kernel Mailing List , George Anzinger Subject: Re: 2.6-test6: nanosleep+SIGCONT weirdness In-Reply-To: <200311081946.28808.vda@port.imtp.ilyichevsk.odessa.ua> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 847 Lines: 23 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 . 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/