Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757325AbYGKXYS (ORCPT ); Fri, 11 Jul 2008 19:24:18 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753295AbYGKXYI (ORCPT ); Fri, 11 Jul 2008 19:24:08 -0400 Received: from smtp1.linux-foundation.org ([140.211.169.13]:42867 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753118AbYGKXYH (ORCPT ); Fri, 11 Jul 2008 19:24:07 -0400 Date: Fri, 11 Jul 2008 16:22:46 -0700 (PDT) From: Linus Torvalds To: Ingo Molnar cc: Roland McGrath , Thomas Gleixner , Andrew Morton , Linux Kernel Mailing List , Elias Oltmanns , =?ISO-8859-15?Q?T=F6r=F6k_Edwin?= , Arjan van de Ven , Oleg Nesterov Subject: Re: [PATCH] x86_64: fix delayed signals In-Reply-To: Message-ID: References: <20080710215039.2A143154218@magilla.localdomain> <20080711054605.GA17851@elte.hu> User-Agent: Alpine 1.10 (LFD 962 2008-03-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1210 Lines: 36 On Fri, 11 Jul 2008, Linus Torvalds wrote: > > No, after testing more, I think Edwin is right. Naah. It is true that there is a huge delay in doing ls -l /usr/bin and then pressing ^C, but after having hit my head against this for a while, I realized that it has nothing to do with the kernel. Doing an "strace ls" showed that ls doesn't play any games with signals etc, which fooled me into looking for a kernel reason. HOWEVER, it looks like at least fedora does a alias ls='ls --color=auto' and it turns out that if you do that --color=auto, then ls will indeed catch all normal signals and set a "please stop now" flag, instead of dying immediately. The reason is probably to avoiding leaving the terminal with some odd color if interrupted in an inconvenient place. So I was chasing this latency thing totally unnecessarily. It's in user space (or at least _my_ particular issue was). Other user cases may obviously be elsewhere. 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/