Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755508AbYF2HXu (ORCPT ); Sun, 29 Jun 2008 03:23:50 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751667AbYF2HXl (ORCPT ); Sun, 29 Jun 2008 03:23:41 -0400 Received: from eth7959.sa.adsl.internode.on.net ([150.101.82.22]:46585 "EHLO hawking.rebel.net.au" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751395AbYF2HXk (ORCPT ); Sun, 29 Jun 2008 03:23:40 -0400 Message-ID: <48673873.6040202@davidnewall.com> Date: Sun, 29 Jun 2008 16:53:31 +0930 From: David Newall User-Agent: Thunderbird 2.0.0.12 (X11/20080227) MIME-Version: 1.0 To: Jeremy Fitzhardinge CC: =?ISO-8859-1?Q?T=F6r=F6k_Edwin?= , Linux Kernel Subject: Re: Ctrl+C doesn't interrupt process waiting for I/O References: <48661488.10304@gmail.com> <4866F6FE.9000503@goop.org> In-Reply-To: <4866F6FE.9000503@goop.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1057 Lines: 23 Jeremy Fitzhardinge wrote: > T?r?k Edwin wrote: >> ... >> - I have a (I/O bound) process running in my terminal, and I want to >> interrupt it with Ctrl+C >> - I type Ctrl+C several times, and the process is not interrupted for >> several seconds (10-30 secs) >> - if I type Ctrl+Z, and use kill %1 the process dies faster than >> waiting for it to react to Ctrl+C > > Yes, it's intended behaviour. Filesystem IO syscalls are considered > "fast" and are interruptible. Usermode code can reasonably expect > that file IO will never return EINTR. This does not address the symptom that the process can be killed quicker by sending a SIGTERM. I've noticed the problem, too (2.6.25.) I wonder if it isn't some strangeness in the tty layer (hence the interrupt key is slower than an explicitly sent signal.) -- 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/