Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Trac Trac
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Issues 246
    • Issues 246
    • List
    • Boards
    • Service Desk
    • Milestones
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
  • Wiki
    • Wiki
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • Legacy
  • TracTrac
  • Issues
  • #3701
Closed (moved) (moved)
Open
Created Aug 08, 2011 by Mike Perry@mikeperry

PyTorCtl shouldn't os.kill() itself

In order to ensure we died properly from uncaught exceptions in user-written event threads, I hacked in an os.kill() into the event loop that catches these exceptions, because sys.exit() only exits the thread, and os._exit() doesn't call atexit handlers. os.kill() does call the atexit handlers, but it causes the return value of the interpreter to be the signal used. This exit value breaks out bw authority parent/child model, which relies on exit codes to properly detect child death and respawn.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking