Skip to content

Warning: shared-lib-calls-exit detected by a lint tool #1315

@junaruga

Description

@junaruga

Thanks for maintaining this software. When checking a htslib 1.13 RPM package on Fedora by a lint tool called rpmlint, the following warning was detected. I am not sure how important it is. But I would just report it here.

htslib.x86_64: W: shared-lib-calls-exit /usr/lib64/libhts.so.1.13 exit@GLIBC_2.2.5
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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions