OSDN Git Service
(root)
/
pf3gnuchains
/
pf3gnuchains4x.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bf7af66
)
* libc/stdlib/exit.c (exit): Handle null _GLOBAL_REENT->_atexits.
author
rsandifo
<rsandifo>
Wed, 22 Oct 2003 08:45:00 +0000
(08:45 +0000)
committer
rsandifo
<rsandifo>
Wed, 22 Oct 2003 08:45:00 +0000
(08:45 +0000)
newlib/ChangeLog
patch
|
blob
|
history
newlib/libc/stdlib/exit.c
patch
|
blob
|
history
diff --git
a/newlib/ChangeLog
b/newlib/ChangeLog
index
74495c3
..
0af6c34
100644
(file)
--- a/
newlib/ChangeLog
+++ b/
newlib/ChangeLog
@@
-1,3
+1,7
@@
+2003-10-22 Richard Sandiford <rsandifo@redhat.com>
+
+ * libc/stdlib/exit.c (exit): Handle null _GLOBAL_REENT->_atexits.
+
2003-10-20 Bob Wilson <bob.wilson@acm.org>
* libc/locale/locale.c: Use double quotes in code.
diff --git
a/newlib/libc/stdlib/exit.c
b/newlib/libc/stdlib/exit.c
index
dad2861
..
be96488
100644
(file)
--- a/
newlib/libc/stdlib/exit.c
+++ b/
newlib/libc/stdlib/exit.c
@@
-83,7
+83,7
@@
_DEFUN (exit, (code),
}
#else
p = _GLOBAL_REENT->_atexit;
- do
+ while (p)
{
args = & p->_on_exit_args;
@@
-95,7
+95,6
@@
_DEFUN (exit, (code),
p = p->_next;
}
- while (p);
#endif
if (_GLOBAL_REENT->__cleanup)