fork_processes() can leave orphan processes

Open
#1,912 7 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
python

Research direction

Start by locating the Python implementation and callers of fork_processes(). Read how the parent handles signals and KeyboardInterrupt, then verify that interrupted or signaled parents do not leave child processes behind; add or update focused tests if the existing test suite covers this behavior.

Written by the indexing model from the issue text.

Description

process

fork_processes() does not attempt to detect if the parent process receives a signal or a KeyboardInterrupt. As a result, if the parent process is killed with a signal or interrupted with Ctrl-C, it happily leaves around its children.

Dominant language
Python
Stars
22.2k
Forks
5.6k
Avg merge
3h 42m
Merged PRs (30d)
16

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from tornadoweb/tornado

All issues in tornadoweb/tornado

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.