[issue31629] Running test_curses on FreeBSD changes signal handlers

2017-10-31 Thread STINNER Victor
STINNER Victor added the comment: Thanks Serhiy Storchaka for the bug report and Pablo Galindo Salgado for the analysis! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 2.7, Python 3.6 ___ Python tra

[issue31629] Running test_curses on FreeBSD changes signal handlers

2017-10-31 Thread STINNER Victor
STINNER Victor added the comment: New changeset 41efc402f154e48e95dde2993901648edcb24069 by Victor Stinner in branch '3.6': bpo-31629: Add support.SaveSignals (#4183) (#4187) https://github.com/python/cpython/commit/41efc402f154e48e95dde2993901648edcb24069 -- ___

[issue31629] Running test_curses on FreeBSD changes signal handlers

2017-10-31 Thread STINNER Victor
STINNER Victor added the comment: New changeset 1d481822a6295e6739da2d5cca0fdbede51fda22 by Victor Stinner in branch '2.7': bpo-31629: Add support.SaveSignals (#4183) (#4188) https://github.com/python/cpython/commit/1d481822a6295e6739da2d5cca0fdbede51fda22 -- ___

[issue31629] Running test_curses on FreeBSD changes signal handlers

2017-10-31 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +4158 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue31629] Running test_curses on FreeBSD changes signal handlers

2017-10-31 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +4157 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue31629] Running test_curses on FreeBSD changes signal handlers

2017-10-31 Thread STINNER Victor
STINNER Victor added the comment: New changeset 19f68301a1295a9c30d9f28b8f1479cdcccd75aa by Victor Stinner in branch 'master': bpo-31629: Add support.SaveSignals (#4183) https://github.com/python/cpython/commit/19f68301a1295a9c30d9f28b8f1479cdcccd75aa --

[issue31629] Running test_curses on FreeBSD changes signal handlers

2017-10-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Victor and Pablo! Great work! -- ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue31629] Running test_curses on FreeBSD changes signal handlers

2017-10-30 Thread STINNER Victor
STINNER Victor added the comment: Pablo Galindo Salgado: > Also, it seems that calling initscr registers signal handlers for SIGTERM: > (...) The problem is that endwin() doesn't restore the old handler. Attached PR 4183 fixes the bug, it saves/restores signal handlers: ./python -m test -vua