Project

General

Profile

Actions

Bug #267

closed

library should not do exit() for error handling

Added by Yannick Brosseau almost 12 years ago. Updated over 11 years ago.

Status:
Won't fix
Priority:
Low
Target version:
-
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

)


Related issues 1 (0 open1 closed)

Related to Userspace RCU - Bug #152: library should not do exit() for error handlingResolvedMathieu Desnoyers03/05/2012

Actions
Actions #1

Updated by Yannick Brosseau almost 12 years ago

  • Project changed from Userspace RCU to LTTng-UST
Actions #2

Updated by Yannick Brosseau almost 12 years ago

  • Description updated (diff)
Actions #3

Updated by Mathieu Desnoyers over 11 years ago

  • Status changed from New to Feedback

please provide the call sites.

Actions #4

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

Also available in: Atom PDF