Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What should happen to signals when the main thread dies? #50412

Closed
eggy mannequin opened this issue Jun 1, 2009 · 2 comments
Closed

What should happen to signals when the main thread dies? #50412

eggy mannequin opened this issue Jun 1, 2009 · 2 comments
Labels
interpreter-core (Objects, Python, Grammar, and Parser dirs) type-feature A feature request or enhancement

Comments

@eggy
Copy link
Mannequin

eggy mannequin commented Jun 1, 2009

BPO 6162
Nosy @terryjreedy
Files
  • ignore_signals.py: Ignore signals such as SIGINT
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2010-07-09.03:42:06.523>
    created_at = <Date 2009-06-01.16:01:32.485>
    labels = ['interpreter-core', 'type-feature']
    title = 'What should happen to signals when the main thread dies?'
    updated_at = <Date 2010-07-09.03:42:06.520>
    user = 'https://bugs.python.org/eggy'

    bugs.python.org fields:

    activity = <Date 2010-07-09.03:42:06.520>
    actor = 'terry.reedy'
    assignee = 'none'
    closed = True
    closed_date = <Date 2010-07-09.03:42:06.523>
    closer = 'terry.reedy'
    components = ['Interpreter Core']
    creation = <Date 2009-06-01.16:01:32.485>
    creator = 'eggy'
    dependencies = []
    files = ['14143']
    hgrepos = []
    issue_num = 6162
    keywords = []
    message_count = 2.0
    messages = ['88650', '109674']
    nosy_count = 2.0
    nosy_names = ['terry.reedy', 'eggy']
    pr_nums = []
    priority = 'normal'
    resolution = 'later'
    stage = None
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue6162'
    versions = ['Python 3.2']

    @eggy
    Copy link
    Mannequin Author

    eggy mannequin commented Jun 1, 2009

    As signals are only delivered to the main thread, what should happen
    when the main thread dies? Currently, the signal mask is not unset in
    any other thread, so when the main thread dies, all signals set in the
    mask are simply ignored. Perhaps an other thread could be selected as
    the main thread?

    The accompanied file demonstrates this behavior.

    @eggy eggy mannequin added interpreter-core (Objects, Python, Grammar, and Parser dirs) type-feature A feature request or enhancement labels Jun 1, 2009
    @terryjreedy
    Copy link
    Member

    I think there has been some discussion of signals, in the last year, on the py-dev list (== gmane.comp.python.devel), which is archived both on the python site and gmane.org. Signals seem to be a somewhat nasty subject.

    Since you only raise a question rather than proposing a specific, possible change, I am closing this for now. I suggest you open a discussion on python-list (mirrored as newsgroup gmane.comp.python.general). Perhaps a specific proposal would come from that, perhaps you would find that your idea is impossible.

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    interpreter-core (Objects, Python, Grammar, and Parser dirs) type-feature A feature request or enhancement
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant