Menu

#46 excise exit()

open
nobody
wheat core (23)
5
2004-07-27
2004-06-27
No

Nothing in the code base should call exit()
Nothing in the code base should call pt::fatal() (which calls exit())

Of course, this is going to be possible everywhere, but should be
removed as much as possible. Allowable places are things like
when expath calls exit() if malloc() fails.

Discussion

  • Mark Lentczner

    Mark Lentczner - 2004-06-27
    • labels: --> wheat core
    • milestone: --> 367884
     
  • Mark Lentczner

    Mark Lentczner - 2004-07-27
    • milestone: 367884 --> future_release_cycle
     
  • Mark Lentczner

    Mark Lentczner - 2004-07-27

    Logged In: YES
    user_id=219202

    checked all the calls to exit() -- the only suspect one left is in the code
    that forks off in daemon mode -- and only because we have the System
    open and running now in two processes

    exit() is also called from Antlr's panic() functions, which are never called.

    exit() is also called from Ptype's fatal() function. This function is called
    all too often from the ptype library. Each of these should be checked to
    ensure that it is really a fatal, non-recoverable condition.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.