* callback.c (os_shutdown): Fix bug in last change: actually
authorJoern Rennecke <joern.rennecke@embecosm.com>
Sun, 27 Jun 2004 03:14:51 +0000 (03:14 +0000)
committerJoern Rennecke <joern.rennecke@embecosm.com>
Sun, 27 Jun 2004 03:14:51 +0000 (03:14 +0000)
mark file descriptors as available on startup.

sim/common/ChangeLog
sim/common/callback.c

index 573c82d9b4d8e4fbc917475706cc6a2e4b83795c..b4d3d2a00b611b8f53e9f63099708f3bc4287e4d 100644 (file)
@@ -1,3 +1,8 @@
+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.
+
 2004-06-25  J"orn Rennecke <joern.rennecke@superh.com>
 
        [ include/gdb: * callback.h (host_callback_struct): Replace
index bbb3fe5baa8d1b469882b1697b06635b57c61996..ca707fc18cd6a50924e25bfd33cd869b3c39a467 100644 (file)
@@ -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;
            }
This page took 0.034835 seconds and 4 git commands to generate.