library should not do exit() for error handling
It's impolite for a library to call exit().
We should find a better way to do error handling in those case
See output of rpmlist ran on fedora:
lttng-ust.x86_64: W: shared-lib-calls-exit /usr/lib64/liblttng-ust-ctl.so.0.0.0 exit@GLIBC_2.2.5
Updated by Mathieu Desnoyers almost 8 years ago
- Status changed from Feedback to Won't fix
Actually, the few _exit() called from liblttng-ust/lttng-ust-comm.c are called from a temporary child process forked from the library to open the shm wait file with the appropriate umask (and we don't want to change the application umask, so we do it in a child process).
Therefore, these _exit() calls are there to stay.