bugGNUstep - Bugs: bug #50031, libgnustep-base calls exit()

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #50031: libgnustep-base calls exit()

Submitted by:  Luigi Baldoni <aloysius>
Submitted on:  Wed 11 Jan 2017 09:35:30 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Wont Fix
Privacy: PublicAssigned to: None
Open/Closed: Declined

Thu 12 Jan 2017 10:39:02 AM UTC, comment #1:

I have reviewed the use of exit() and found all cases to be correct/necessary.
Usage falls into four categories:
1. when the developer calls exit on the main thread ... the program must exit.
2. in the uncaught exception handler ... the program must exit
3. in a child after fork() where the subprocess can't be started properly
4. system startup failure before main() is entered (and therefore before any application developer code can handle Anything)

Richard Frith-Macdonald <CaS>
Project Member
Wed 11 Jan 2017 09:35:30 PM UTC, original submission:

Courtesy of rpmlint:

gnustep-base.x86_64: W: shared-lib-calls-exit /usr/lib6/libgnustep-base.so.1.24.9 exit@GLIBC_2.2.5
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.

Regards

Luigi Baldoni <aloysius>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by CaS (Posted a comment)
  • -unavailable- added by aloysius (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 12 Jan 2017 10:39:02 AM UTCCaSStatusNone=>Wont Fix
      Open/ClosedOpen=>Declined

    Back to the top


    Powered by Savane 3.1-cleanup1