Bug #267
closed
library should not do exit() for error handling
Added by Yannick Brosseau almost 12 years ago.
Updated over 11 years ago.
Description
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
)
- Project changed from Userspace RCU to LTTng-UST
- Description updated (diff)
- Status changed from New to Feedback
please provide the call sites.
- 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.
Thanks,
Mathieu
Also available in: Atom
PDF