* libc/stdlib/exit.c (exit): Handle null _GLOBAL_REENT->_atexits.
This commit is contained in:
parent
ac06287b30
commit
63a823f8f4
@ -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>
|
2003-10-20 Bob Wilson <bob.wilson@acm.org>
|
||||||
|
|
||||||
* libc/locale/locale.c: Use double quotes in code.
|
* libc/locale/locale.c: Use double quotes in code.
|
||||||
|
@ -83,7 +83,7 @@ _DEFUN (exit, (code),
|
|||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
p = _GLOBAL_REENT->_atexit;
|
p = _GLOBAL_REENT->_atexit;
|
||||||
do
|
while (p)
|
||||||
{
|
{
|
||||||
args = & p->_on_exit_args;
|
args = & p->_on_exit_args;
|
||||||
|
|
||||||
@ -95,7 +95,6 @@ _DEFUN (exit, (code),
|
|||||||
|
|
||||||
p = p->_next;
|
p = p->_next;
|
||||||
}
|
}
|
||||||
while (p);
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (_GLOBAL_REENT->__cleanup)
|
if (_GLOBAL_REENT->__cleanup)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user