-
Notifications
You must be signed in to change notification settings - Fork 3
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
[WIP] Patch NGINX to allow it to better handle SIGTERM #56
Draft
chap
wants to merge
16
commits into
heroku:main
Choose a base branch
from
chap:patch-sigterm
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
3fdc1a8
patch nginx sigterm when $NGINX_SIGTERM_PATCH set
chap 77a38ec
Create 0001-Custom-Terminate-Signal.patch
chap 7528cc1
Update 0001-Custom-Terminate-Signal.patch
chap f8f70e0
Update build_nginx
chap 7a270bd
Update build_nginx
chap 9ef51d8
Create 0001-Custom-Terminate-Signal.patch
chap 3124c1e
Delete 0001-Custom-Terminate-Signal.patch
chap 04913d3
Create 0001-Custom-Terminate-Signal.patch
chap 12d24c8
Create .gitkeep
chap fc9f5b1
Delete 0001-Custom-Terminate-Signal.patch
chap 90fb7fe
Update build_nginx
chap 6f3f591
rebuild bin / heroku-18
chap b821eaa
set vars
chap f26d8e9
Update 0001-Custom-Terminate-Signal.patch
chap 1d9504f
rebuild bin
chap 7afeaf8
rebuild
chap File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
scripts/patchfiles/1.18.0/0001-Custom-Terminate-Signal.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- src/core/ngx_config.h 2020-05-23 04:21:07.000000000 +0000 | ||
+++ src/core/ngx_config.h 2020-05-23 04:15:17.000000000 +0000 | ||
@@ -56,9 +56,8 @@ | ||
|
||
#define ngx_random random | ||
|
||
-/* TODO: #ifndef */ | ||
-#define NGX_SHUTDOWN_SIGNAL QUIT | ||
-#define NGX_TERMINATE_SIGNAL TERM | ||
+#define NGX_SHUTDOWN_SIGNAL TERM | ||
+#define NGX_TERMINATE_SIGNAL QUIT | ||
#define NGX_NOACCEPT_SIGNAL WINCH | ||
#define NGX_RECONFIGURE_SIGNAL HUP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.