Thanks to visit codestin.com
Credit goes to github.com

Skip to content

stlink library calls exit() or _exit() #634

@Vascom

Description

@Vascom

When I am build package stlink for Fedora it make some checks. And I see this warning:
stlink.x86_64: W: shared-lib-calls-exit /usr/lib64/libstlink-shared.so.1.4.0 exit@GLIBC_2.2.5

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.

Can you correct it?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions