[issue1257] atexit errors should result in nonzero exit code
Lakin Wecker
report at bugs.python.org
Wed Oct 10 22:04:47 CEST 2007
Lakin Wecker added the comment:
sorry for the noise and duplication. The full code listing should have
been:
46 # Sometimes an exception happens during exit, try to make
sure we get
47 # a non_zero exit code.
48 old_exitfunc = sys.exitfunc
49 def exitfunc():
50 try:
51 old_exitfunc()
52 except SystemExit:
53 raise
54 except:
55 raise SystemExit(1)
56 sys.exitfunc = exitfunc
__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1257>
__________________________________
More information about the Python-bugs-list
mailing list