taskAVR Downloader/UploaDEr - Tasks: task #12841, Remove all calls to exit() from...


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

task #12841: Remove all calls to exit() from library code

Submitted by:  Joerg Wunsch <joerg_wunsch>
Submitted on:  Thu 12 Sep 2013 03:00:12 PM UTC  
Should Start On: Wed 11 Sep 2013 10:00:00 PM UTCShould be Finished on: Mon 30 Dec 2013 11:00:00 PM UTC
Category: NonePriority: 5 - Normal
Status: NonePrivacy: Public
Percent Complete: 0%Assigned to: None
Open/Closed: OpenEffort: 0.00

Thu 12 Sep 2013 03:00:12 PM UTC, original submission:

Everything that goes into libavrdude.a (and potentially also
libavrdude.so later on) must not call exit() by itself.

Fix everything to return a correct status to the next higher
layer (and make sure the status is checked there).

For malloc() failure, provide for a central point of return
in main.c, like avrdude_malloc_failure() that can perform
the exit. Any user of the library is then responsible of
providing their own method for this rare situation.

Joerg Wunsch <joerg_wunsch>
Project Administrator


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 joerg_wunsch
  • -unavailable- added by joerg_wunsch (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):



    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 12 Sep 2013 03:02:26 PM UTCjoerg_wunschCarbon-Copy-=>Added awachtler

    Back to the top

    Powered by Savane 3.1-cleanup1