OSDN Git Service
(root)
/
pf3gnuchains
/
pf3gnuchains3x.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d2ddbb
)
* syscalls.cc (endusershell): Reset shell_fp to NULL to allow
author
corinna
<corinna>
Wed, 24 Aug 2005 15:50:10 +0000
(15:50 +0000)
committer
corinna
<corinna>
Wed, 24 Aug 2005 15:50:10 +0000
(15:50 +0000)
subsequent getusershell calls.
winsup/cygwin/ChangeLog
patch
|
blob
|
history
winsup/cygwin/syscalls.cc
patch
|
blob
|
history
diff --git
a/winsup/cygwin/ChangeLog
b/winsup/cygwin/ChangeLog
index
c97cb61
..
9fff7ad
100644
(file)
--- a/
winsup/cygwin/ChangeLog
+++ b/
winsup/cygwin/ChangeLog
@@
-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
diff --git
a/winsup/cygwin/syscalls.cc
b/winsup/cygwin/syscalls.cc
index
516ce69
..
c6827fa
100644
(file)
--- 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;
}