Bug #1250
closedon_exit implementation
0%
Description
Hi,
libcrystax.so doesn't export on_exit() but atexit().
test case:
https://github.com/payload/crystax-tests/tree/issue_on_exit
Have a nice day.
Updated by Dmitry M. about 8 years ago
- Category set to libcrystax
- Status changed from Open to Waiting for feedback
- Assignee set to Dmitry M.
This is deprecated function. Even in glibc it's not recommended for use. See "here":http://man7.org/linux/man-pages/man3/on_exit.3.html:
This function comes from SunOS 4, but is also present in glibc. It
no longer occurs in Solaris (SunOS 5). Portable application should
avoid this function, and use the standard atexit(3) instead.
I'm not sure it makes sense to add it to the libcrystax, especially taking into account that @on_exit@ is really ancient.
Updated by Gilbert R. about 8 years ago
Thank you for pointing this out to me. I try to compile gettext and now I realise that something goes wrong at configure time such that gettext chooses to compile a definition of atexit, which relies on on_exit. I look it up why it thinks that atexit isn't provided by the host.
Updated by Dmitry M. about 8 years ago
- Status changed from Waiting for feedback to Rejected