aboutsummaryrefslogtreecommitdiff
path: root/sim/common/callback.c
diff options
context:
space:
mode:
authorJoern Rennecke <joern.rennecke@embecosm.com>2004-06-27 03:14:51 +0000
committerJoern Rennecke <joern.rennecke@embecosm.com>2004-06-27 03:14:51 +0000
commit0242f9ea6044f72ea80bb38484e67be61ba81f8f (patch)
tree749afec0d40e1da5a9d19d5ad64bff87e28af036 /sim/common/callback.c
parent146ccdbb23d3dc6d3879ce169e01052e1012118a (diff)
downloadgdb-0242f9ea6044f72ea80bb38484e67be61ba81f8f.zip
gdb-0242f9ea6044f72ea80bb38484e67be61ba81f8f.tar.gz
gdb-0242f9ea6044f72ea80bb38484e67be61ba81f8f.tar.bz2
* callback.c (os_shutdown): Fix bug in last change: actually
mark file descriptors as available on startup.
Diffstat (limited to 'sim/common/callback.c')
-rw-r--r--sim/common/callback.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sim/common/callback.c b/sim/common/callback.c
index bbb3fe5..ca707fc 100644
--- a/sim/common/callback.c
+++ b/sim/common/callback.c
@@ -453,6 +453,7 @@ os_shutdown (p)
/* 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;
}