Actions
Bug #267
closedlibrary should not do exit() for error handling
Start date:
03/05/2012
Due date:
% Done:
0%
Estimated time:
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
)
Updated by Yannick Brosseau almost 12 years ago
- Project changed from Userspace RCU to LTTng-UST
Updated by Mathieu Desnoyers over 11 years ago
- Status changed from New to Feedback
please provide the call sites.
Updated by Mathieu Desnoyers over 11 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.
Thanks,
Mathieu
Actions