From: corinna Date: Wed, 24 Aug 2005 15:50:10 +0000 (+0000) Subject: * syscalls.cc (endusershell): Reset shell_fp to NULL to allow X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=285169e7ba4d7b6fe32a202f6cee79792a90ff18;p=pf3gnuchains%2Fpf3gnuchains3x.git * syscalls.cc (endusershell): Reset shell_fp to NULL to allow subsequent getusershell calls. --- diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index c97cb6130e..9fff7adc37 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2005-08-24 Corinna Vinschen + + * syscalls.cc (endusershell): Reset shell_fp to NULL to allow + subsequent getusershell calls. + 2005-08-24 Christopher Faylor * path.cc (path_conv::check): Fill in fileattr for /dev, defaulting to diff --git a/winsup/cygwin/syscalls.cc b/winsup/cygwin/syscalls.cc index 516ce696a8..c6827fa89e 100644 --- a/winsup/cygwin/syscalls.cc +++ b/winsup/cygwin/syscalls.cc @@ -3052,7 +3052,10 @@ extern "C" void endusershell () { if (shell_fp) - fclose (shell_fp); + { + fclose (shell_fp); + shell_fp = NULL; + } shell_index = 0; }