From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26894 invoked by alias); 27 Jun 2004 03:21:46 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 26880 invoked from network); 27 Jun 2004 03:21:45 -0000 Received: from unknown (HELO www-cache.kbnet.net) (81.26.107.28) by sourceware.org with SMTP; 27 Jun 2004 03:21:45 -0000 Received: from meolyon.local ([81.26.104.185]) by www-cache.kbnet.net (8.11.6/8.11.6) with ESMTP id i5R3Lga30031; Sun, 27 Jun 2004 04:21:42 +0100 Received: by meolyon.local (Postfix, from userid 500) id 6B2E07E58D; Sun, 27 Jun 2004 04:21:50 +0100 (BST) Subject: Re: RFA: fix file descripter mapping for sim_callback->close et al To: gdb-patches@sources.redhat.com Date: Sun, 27 Jun 2004 03:21:00 -0000 Cc: joern.rennecke@superh.com In-Reply-To: <20040624235740.8231B471FC@meolyon.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20040627032150.6B2E07E58D@meolyon.local> From: amylaar@spamcop.net (Joern Rennecke) X-SW-Source: 2004-06/txt/msg00586.txt.bz2 I've found that I've missed actually marking the file descriptors as free on startup. I've checked the attached on-liner in as an obvious fix. 2004-06-27 J"orn Rennecke * callback.c (os_shutdown): Fix bug in last change: actually mark file descriptors as available on startup. Index: callback.c =================================================================== RCS file: /cvs/src/src/sim/common/callback.c,v retrieving revision 1.9 diff -p -r1.9 callback.c *** callback.c 25 Jun 2004 16:48:03 -0000 1.9 --- callback.c 27 Jun 2004 03:12:42 -0000 *************** os_shutdown (p) *** 453,458 **** --- 453,459 ---- /* At the initial call of os_init, we got -1, 0, 0, 0, ... */ if (next < 0) { + p->fd_buddy[i] = -1; do_close = 0; break; }