From: amylaar@spamcop.net (Joern Rennecke)
To: gdb-patches@sources.redhat.com
Cc: joern.rennecke@superh.com
Subject: Re: RFA: fix file descripter mapping for sim_callback->close et al
Date: Sun, 27 Jun 2004 03:21:00 -0000 [thread overview]
Message-ID: <20040627032150.6B2E07E58D@meolyon.local> (raw)
In-Reply-To: <20040624235740.8231B471FC@meolyon.local>
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 <joern.rennecke@superh.com>
* 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;
}
prev parent reply other threads:[~2004-06-27 3:21 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-24 23:57 Joern Rennecke
2004-06-25 15:26 ` Andrew Cagney
2004-06-27 3:21 ` Joern Rennecke [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040627032150.6B2E07E58D@meolyon.local \
--to=amylaar@spamcop.net \
--cc=gdb-patches@sources.redhat.com \
--cc=joern.rennecke@superh.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox