Ticket #761 (new defect )

Opened 4 years ago

Last modified 3 years ago

Twisted doesn't exit with proper exit code after SIGINT

Reported by: jknight Assigned to: jknight
Type: defect Priority: high
Milestone: Component: core
Keywords: Cc: exarkun, jknight
Branch: Author:
Launchpad Bug:

Attachments

Change History

  2004-10-26 02:43:23+00:00 changed by jknight

After receiving a SIGINT, twisted should exit with a SIGINT result code.
It should do this by exiting with:
 signal.signal(signal.SIGINT, signal.SIG_DFL)
 os.kill(os.getpid(), SIGINT)
after shutting down the reactor.
Either that, or re-raise a KeyboardInterrupt, which would let a future version of
python return the right exit code to the OS. (I submitted python bug 1054041 for this too).
http://www.cons.org/cracauer/sigint.html

  2005-05-22 21:32:29+00:00 changed by exarkun

This is something twistd could do (I'm guessing that's what you meant).  I don't
think reactor.run() should, though.  Perhaps it could return status information,
though.
Note: See TracTickets for help on using tickets.