[issue11654] errors in atexit hooks don't change process exit code

2020-04-23 Thread Glyph Lefkowitz


Glyph Lefkowitz  added the comment:

I hope nobody will mind if I close: It's a duplicate of issue1257 so future 
discussion, if any, should probably happen there.

--
nosy: +glyph
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11654] errors in atexit hooks don't change process exit code

2019-08-01 Thread hai shi


hai shi  added the comment:

as antoine said in https://bugs.python.org/issue1257, this bug should be 
closed;)

--
nosy: +shihai1991

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11654] errors in atexit hooks don't change process exit code

2011-03-30 Thread ysj.ray

ysj.ray  added the comment:

see #1257

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11654] errors in atexit hooks don't change process exit code

2011-03-25 Thread Ray.Allen

Ray.Allen  added the comment:

A straight forward fix maybe making the interpreter exit code a static global 
variable and change it in Modules/atexitmodule.c:atexit_callfuncs() in the case 
of errors occurred.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11654] errors in atexit hooks don't change process exit code

2011-03-25 Thread Ray.Allen

Ray.Allen  added the comment:

Comparing to the atexit() in C, I think this is the wrong behavior. I's weird 
that error in atexit does't change process exit code while error in common 
python code does. There should be a fix.

--
nosy: +ysj.ray

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11654] errors in atexit hooks don't change process exit code

2011-03-23 Thread Antoine Pitrou

New submission from Antoine Pitrou :

Not sure if it's the desired behaviour, so I'm reporting it:

$ ./python -c "import atexit; atexit.register(lambda: 1/0)" && echo success
Error in atexit._run_exitfuncs:
ZeroDivisionError: division by zero
[36956 refs]
success

--
components: Interpreter Core
messages: 131916
nosy: pitrou
priority: normal
severity: normal
status: open
title: errors in atexit hooks don't change process exit code
type: behavior
versions: Python 2.7, Python 3.1, Python 3.2, Python 3.3

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com