| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format) |
| route-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:262270a3-b64e-cf58-068d-cd3e905dd358 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 8228:3771D5:18CB46:1FCAF1:6AEBD2C1 |
| html-safe-nonce | fab4e8ba5848fdc516f97e3a4ef57a0b324aa615137699fd561c9819d33c8868 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MjI4OjM3NzFENToxOENCNDY6MUZDQUYxOjZBRUJEMkMxIiwidmlzaXRvcl9pZCI6IjgxOTM3NTgxMDg4MDcwNTgxMTMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | e68dcf88ffb8c2bb2d7e674488ef77fc51ae37b4ced71063be318cdbe692ca00 |
| hovercard-subject-tag | pull_request:4004201804 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///voltron/pull_requests_fragments/pull_request_layout |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/mkdocs/mkdocs/4162/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/12dc6c887e4733ea83f30ae726c933604febff5e0a582e0eed813fbc26a5108d/mkdocs/mkdocs/pull/4162 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/12dc6c887e4733ea83f30ae726c933604febff5e0a582e0eed813fbc26a5108d/mkdocs/mkdocs/pull/4162 |
| og:image:alt | Fix #3905
Problem
When mkdocs serve receives SIGTERM (e.g., when a Docker container is stopped), the process is killed immediately without running cleanup code. The temporary site_dir created in /t... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Mubashir78 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 97b204e1babd5581d0c4d4f3dc7d4a484f3d9fef013d4bc1be57692ba0aeb6f5 |
| turbo-cache-control | no-cache |
| go-import | github.com/mkdocs/mkdocs git https://github.com/mkdocs/mkdocs.git |
| octolytics-dimension-user_id | 9692741 |
| octolytics-dimension-user_login | mkdocs |
| octolytics-dimension-repository_id | 15830664 |
| octolytics-dimension-repository_nwo | mkdocs/mkdocs |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 15830664 |
| octolytics-dimension-repository_network_root_nwo | mkdocs/mkdocs |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ee820e8271e2dd5c53dba22e928915edb9795b69 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | pull-requests |
| Skip to content | https://github.com/mkdocs/mkdocs/pull/4162#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmkdocs%2Fmkdocs%2Fpull%2F4162 |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmkdocs%2Fmkdocs%2Fpull%2F4162 |
| Sign up | https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=mkdocs%2Fmkdocs |
| Reload | https://github.com/mkdocs/mkdocs/pull/4162 |
| Reload | https://github.com/mkdocs/mkdocs/pull/4162 |
| Reload | https://github.com/mkdocs/mkdocs/pull/4162 |
| mkdocs | https://github.com/mkdocs |
| mkdocs | https://github.com/mkdocs/mkdocs |
| Code | https://github.com/mkdocs/mkdocs |
| Issues120 (120) | https://github.com/mkdocs/mkdocs/issues |
| Pull requests63 (63) | https://github.com/mkdocs/mkdocs/pulls |
| Discussions | https://github.com/mkdocs/mkdocs/discussions |
| Actions | https://github.com/mkdocs/mkdocs/actions |
| Security and quality | https://github.com/mkdocs/mkdocs/security |
| Insights | https://github.com/mkdocs/mkdocs/pulse |
| https://github.com/mkdocs/mkdocs |
| Mubashir78 | https://github.com/Mubashir78 |
| mkdocs:master | https://github.com/mkdocs/mkdocs/tree/master |
| Mubashir78:fix/sigterm-cleanup-serve | https://github.com/Mubashir78/mkdocs/tree/fix/sigterm-cleanup-serve |
| Conversation | https://github.com/mkdocs/mkdocs/pull/4162 |
| Commits1 (1) | https://github.com/mkdocs/mkdocs/pull/4162/commits |
| Checks | https://github.com/mkdocs/mkdocs/pull/4162/checks |
| Files changed | https://github.com/mkdocs/mkdocs/pull/4162/files |
| fix: handle SIGTERM in serve command to clean up temp site_dir | https://github.com/mkdocs/mkdocs/pull/4162#top |
| Mubashir78 | https://github.com/Mubashir78 |
| mkdocs:master | https://github.com/mkdocs/mkdocs/tree/master |
| Mubashir78:fix/sigterm-cleanup-serve | https://github.com/Mubashir78/mkdocs/tree/fix/sigterm-cleanup-serve |
|
| https://github.com/Mubashir78 |
| Mubashir78 | https://github.com/Mubashir78 |
| Jul 7, 2026 | https://github.com/mkdocs/mkdocs/pull/4162#issue-4825524655 |
| #3905 | https://github.com/mkdocs/mkdocs/issues/3905 |
| Please reload this page | https://github.com/mkdocs/mkdocs/pull/4162 |
|
| https://github.com/Mubashir78 |
| fix: handle SIGTERM in serve command to clean up temp site_dir | https://github.com/mkdocs/mkdocs/pull/4162/commits/32adfd0ba2b97cf301b6615fa0d5e8e3903d9227 |
| 32adfd0 | https://github.com/mkdocs/mkdocs/pull/4162/commits/32adfd0ba2b97cf301b6615fa0d5e8e3903d9227 |
| https://github.com/OKAN-SOFTWARE |
| OKAN-SOFTWARE | https://github.com/OKAN-SOFTWARE |
|
Oct 28, 2026
| https://github.com/mkdocs/mkdocs/pull/4162#pullrequestreview-5679474737 |
|
View reviewed changes
| https://github.com/mkdocs/mkdocs/pull/4162/files/32adfd0ba2b97cf301b6615fa0d5e8e3903d9227 |
| mkdocs/commands/serve.py | https://github.com/mkdocs/mkdocs/pull/4162/files/32adfd0ba2b97cf301b6615fa0d5e8e3903d9227#diff-6ce1f9285defedc650e776dc5832321bc5297c681ac941dac31982ee237c7589 |
| OKAN-SOFTWARE | https://github.com/OKAN-SOFTWARE |
| Oct 28, 2026 | https://github.com/mkdocs/mkdocs/pull/4162#discussion_r4398174569 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/mkdocs/mkdocs/pull/4162 |
| https://github.co/hiddenchars |
| https://github.com/mkdocs/mkdocs/pull/{{ revealButtonHref }} |
| Sign up for free | https://github.com/join?source=comment-repo |
| Sign in to comment | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmkdocs%2Fmkdocs%2Fpull%2F4162 |
|
| https://github.com/OKAN-SOFTWARE |
|
OKAN-SOFTWARE
| https://github.com/OKAN-SOFTWARE |
|
| https://github.com/mkdocs/mkdocs/pull/4162/files/32adfd0ba2b97cf301b6615fa0d5e8e3903d9227 |
| Please reload this page | https://github.com/mkdocs/mkdocs/pull/4162 |
|
"mkdocs serve" does not cleanup after a SIGTERM
| https://github.com/mkdocs/mkdocs/issues/3905 |
| Please reload this page | https://github.com/mkdocs/mkdocs/pull/4162 |
|
| https://github.com/Mubashir78 |
|
| https://github.com/OKAN-SOFTWARE |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |