Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Fri, 5 Oct 2001 19:52:40 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Fri, 5 Oct 2001 19:52:30 -0400 Received: from smi-105.smith.uml.edu ([129.63.206.105]:61958 "HELO buick.pennace.org") by vger.kernel.org with SMTP id ; Fri, 5 Oct 2001 19:52:12 -0400 Date: Fri, 5 Oct 2001 19:52:28 -0400 From: Alex Pennace To: Alan Cox Cc: Bernd Eckenfels , linux-kernel@vger.kernel.org Subject: Re: Desperately missing a working "pselect()" or similar... Message-ID: <20011005195228.B6981@buick.pennace.org> Mail-Followup-To: Alan Cox , Bernd Eckenfels , linux-kernel@vger.kernel.org In-Reply-To: <20011005190523.A6516@buick.pennace.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.20i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Oct 06, 2001 at 12:13:17AM +0100, Alan Cox wrote: > > The select system call doesn't return EINTR when the signal is caught > > prior to entry into select. > > Your friend there is siglongjmp/sigsetjmp - the same problem was true > with old versions of alarm that did > > alarm(num) > pause() > > on a heavily loaded box. > > Using siglongjmp cures that I was naive about siglongjump bouncing through the stack over a system call, but it appears to be safe. Excellent. - 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/