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

Fix ForkedFunc to handle hard exit(0) #262

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Sep 30, 2020

  1. Fix ForkedFunc to handle hard exit(0)

    1. waitfinish() assumes that if the forked child process exited with exitstatus
    == 0, that _child() ran to completion and wrote out the retval. This is not true
    if the function run in the child process hard exited with status 0,
    e.g. os._exit(0) (or even sys.exit(0)).
    
    2. Add new unit test test_exit0() for this case.
    vermaport committed Sep 30, 2020
    Configuration menu
    Copy the full SHA
    6497426 View commit details
    Browse the repository at this point in the history