Skip to content

Fix gunicorn signal bug#6134

Merged
asvetlov merged 11 commits intoaio-libs:masterfrom
harrylyx:fix-gunicorn-signal-bug
Oct 27, 2021
Merged

Fix gunicorn signal bug#6134
asvetlov merged 11 commits intoaio-libs:masterfrom
harrylyx:fix-gunicorn-signal-bug

Conversation

@harrylyx
Copy link
Copy Markdown
Contributor

What do these changes do?

🐛 Fix resetting SIGCHLD signals in Gunicorn aiohttp Worker to fix subprocesses that capture output having an incorrect returncode.

Are there changes in behavior for the user?

No

Related issue number

Fix #6130

Checklist

  • I think the code is well written
  • Unit tests for the changes exist
  • Documentation reflects the changes
  • If you provide code modification, please add yourself to CONTRIBUTORS.txt
    • The format is <Name> <Surname>.
    • Please keep alphabetical order, the file is sorted by names.
  • Add a new news fragment into the CHANGES folder
    • name it <issue_id>.<type> for example (588.bugfix)
    • if you don't have an issue_id change it to the pr id after creating the pr
    • ensure type is one of the following:
      • .feature: Signifying a new feature.
      • .bugfix: Signifying a bug fix.
      • .doc: Signifying a documentation improvement.
      • .removal: Signifying a deprecation or removal of public API.
      • .misc: A ticket has been closed, but it is not of interest to users.
    • Make sure to use full sentences with correct case and punctuation, for example: "Fix issue with non-ascii contents in doctest text files."

@psf-chronographer psf-chronographer bot added the bot:chronographer:provided There is a change note present in this PR label Oct 25, 2021
@codecov
Copy link
Copy Markdown

codecov bot commented Oct 25, 2021

Codecov Report

Merging #6134 (0060697) into master (3eea7b8) will decrease coverage by 0.00%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #6134      +/-   ##
==========================================
- Coverage   93.31%   93.30%   -0.01%     
==========================================
  Files         102      102              
  Lines       30178    30180       +2     
  Branches     2701     2702       +1     
==========================================
  Hits        28160    28160              
- Misses       1841     1843       +2     
  Partials      177      177              
Flag Coverage Δ
unit 93.23% <0.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
aiohttp/worker.py 28.33% <0.00%> (-0.49%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3eea7b8...0060697. Read the comment docs.

@asvetlov asvetlov enabled auto-merge (squash) October 27, 2021 16:46
@asvetlov asvetlov merged commit 0fef0a3 into aio-libs:master Oct 27, 2021
@patchback
Copy link
Copy Markdown
Contributor

patchback bot commented Oct 27, 2021

Backport to 3.8: 💚 backport PR created

✅ Backport PR branch: patchback/backports/3.8/0fef0a30797c960ab748664599fab54e6cc2d025/pr-6134

Backported as #6148

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

patchback bot pushed a commit that referenced this pull request Oct 27, 2021
* Fix resetting SIGCHLD in Gunicorn Worker

* add CONTRIBUTORS and add CHANGES

* add CONTRIBUTORS and add CHANGES

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* change CHANGES spell

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Update aiohttp/worker.py

* Fix line length

Co-authored-by: liuyixin <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Andrew Svetlov <[email protected]>
(cherry picked from commit 0fef0a3)
asvetlov pushed a commit that referenced this pull request Oct 27, 2021
Co-authored-by: liuyixin <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Andrew Svetlov <[email protected]>
(cherry picked from commit 0fef0a3)

Co-authored-by: harrylyx <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bot:chronographer:provided There is a change note present in this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Subprocess returncode is not detected when running Gunicorn with aiohttp

2 participants