-
Notifications
You must be signed in to change notification settings - Fork 283
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Shared library calls exit #161
Labels
Comments
|
Response from OCC:
Unless we disagree, I think we can close this. |
This issue was closed.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In packaging OCE for Fedora I ran into the following issue. I've got the packages building successfully now so I ran rpmlint on them, which if you're not familiar with it, checks a bunch of common packaging issues.
The following libraries appear to call exit which is a no-no for shared libraries:
$ rpmlint *.rpm | grep shared-lib-calls-exit
OCE-foundation.x86_64: W: shared-lib-calls-exit /usr/lib64/libTKAdvTools.so.1.0.0 exit@GLIBC_2.2.5
OCE-foundation.x86_64: W: shared-lib-calls-exit /usr/lib64/libTKernel.so.1.0.0 exit@GLIBC_2.2.5
OCE-visualization.x86_64: W: shared-lib-calls-exit /usr/lib64/libTKService.so.1.0.0 exit@GLIBC_2.2.5
OCE-visualization.x86_64: W: shared-lib-calls-exit /usr/lib64/libTKOpenGl.so.1.0.0 exit@GLIBC_2.2.5
rpmlint provides the following explination:
$ rpmlint -I shared-lib-calls-exit
shared-lib-calls-exit:
This library package calls exit() or _exit(), probably in a non-fork()
context. Doing so from a library is strongly discouraged - when a library
function calls exit(), it prevents the calling program from handling the
error, reporting it to the user, closing files properly, and cleaning up any
state that the program has. It is preferred for the library to return an
actual error code and let the calling program decide how to handle the
situation.
The text was updated successfully, but these errors were encountered: