Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756265AbYAEQir (ORCPT ); Sat, 5 Jan 2008 11:38:47 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755483AbYAEQih (ORCPT ); Sat, 5 Jan 2008 11:38:37 -0500 Received: from mx1.suse.de ([195.135.220.2]:51574 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755107AbYAEQig (ORCPT ); Sat, 5 Jan 2008 11:38:36 -0500 From: Andreas Schwab To: "Phil Endecott" Cc: "Jiri Slaby" , , " Frederik Deweerdt" Subject: Re: strace, accept(), ERESTARTSYS and EINTR References: <477F6B23.3050108@gmail.com> <1199543075452@dmwebmail.japan.chezphil.org> X-Yow: Spreading peanut butter reminds me of opera!! I wonder why? Date: Sat, 05 Jan 2008 17:38:34 +0100 In-Reply-To: <1199543075452@dmwebmail.japan.chezphil.org> (Phil Endecott's message of "Sat\, 05 Jan 2008 14\:24\:35 +0000") Message-ID: User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.1 (gnu/linux) MIME-Version: 1.0 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: 1055 Lines: 24 "Phil Endecott" writes: > However, there's a lot of code and I know that there are bugs in it. I > just want to focus on the kernel-related issue that the strace fragment > that I posted brings up: even if my user code gets completely screwed up > (corrupts its stack, runs out of FDs/VM/threads etc), I don't think that I > should see in the strace output that accept() has returned > ERESTARTSYS. strace always sees the raw return value, before the signal handler is executed and before the check for syscall restart is done. Andreas. -- Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux Products GmbH, Maxfeldstra?e 5, 90409 N?rnberg, Germany PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." -- 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/