OSDN Git Service

* syscalls.cc (endusershell): Reset shell_fp to NULL to allow
authorcorinna <corinna>
Wed, 24 Aug 2005 15:50:10 +0000 (15:50 +0000)
committercorinna <corinna>
Wed, 24 Aug 2005 15:50:10 +0000 (15:50 +0000)
subsequent getusershell calls.

winsup/cygwin/ChangeLog
winsup/cygwin/syscalls.cc

index c97cb61..9fff7ad 100644 (file)
@@ -1,3 +1,8 @@
+2005-08-24  Corinna Vinschen  <corinna@vinschen.de>
+
+       * syscalls.cc (endusershell): Reset shell_fp to NULL to allow
+       subsequent getusershell calls.
+
 2005-08-24  Christopher Faylor  <cgf@timesys.com>
 
        * path.cc (path_conv::check): Fill in fileattr for /dev, defaulting to
index 516ce69..c6827fa 100644 (file)
@@ -3052,7 +3052,10 @@ extern "C" void
 endusershell ()
 {
   if (shell_fp)
-    fclose (shell_fp);
+    {
+      fclose (shell_fp);
+      shell_fp = NULL;
+    }
   shell_index = 0;
 }