René's URL Explorer Experiment


Title: fix: handle SIGTERM in serve command to clean up temp site_dir by Mubashir78 · Pull Request #4162 · mkdocs/mkdocs · GitHub

Open Graph Title: fix: handle SIGTERM in serve command to clean up temp site_dir by Mubashir78 · Pull Request #4162 · mkdocs/mkdocs

X Title: fix: handle SIGTERM in serve command to clean up temp site_dir by Mubashir78 · Pull Request #4162 · mkdocs/mkdocs

Description: Project documentation with Markdown. Contribute to mkdocs/mkdocs development by creating an account on GitHub.

Open Graph Description: 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...

X Description: 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...

Opengraph URL: https://github.com/mkdocs/mkdocs/pull/4162

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,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-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:262270a3-b64e-cf58-068d-cd3e905dd358
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8228:3771D5:18CB46:1FCAF1:6AEBD2C1
html-safe-noncefab4e8ba5848fdc516f97e3a4ef57a0b324aa615137699fd561c9819d33c8868
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MjI4OjM3NzFENToxOENCNDY6MUZDQUYxOjZBRUJEMkMxIiwidmlzaXRvcl9pZCI6IjgxOTM3NTgxMDg4MDcwNTgxMTMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmace68dcf88ffb8c2bb2d7e674488ef77fc51ae37b4ced71063be318cdbe692ca00
hovercard-subject-tagpull_request:4004201804
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/mkdocs/mkdocs/4162/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/12dc6c887e4733ea83f30ae726c933604febff5e0a582e0eed813fbc26a5108d/mkdocs/mkdocs/pull/4162
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/12dc6c887e4733ea83f30ae726c933604febff5e0a582e0eed813fbc26a5108d/mkdocs/mkdocs/pull/4162
og:image:altFix #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:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameMubashir78
hostnamegithub.com
expected-hostnamegithub.com
None97b204e1babd5581d0c4d4f3dc7d4a484f3d9fef013d4bc1be57692ba0aeb6f5
turbo-cache-controlno-cache
go-importgithub.com/mkdocs/mkdocs git https://github.com/mkdocs/mkdocs.git
octolytics-dimension-user_id9692741
octolytics-dimension-user_loginmkdocs
octolytics-dimension-repository_id15830664
octolytics-dimension-repository_nwomkdocs/mkdocs
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id15830664
octolytics-dimension-repository_network_root_nwomkdocs/mkdocs
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseee820e8271e2dd5c53dba22e928915edb9795b69
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/mkdocs/mkdocs/pull/4162#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmkdocs%2Fmkdocs%2Fpull%2F4162
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmkdocs%2Fmkdocs%2Fpull%2F4162
Sign uphttps://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
Reloadhttps://github.com/mkdocs/mkdocs/pull/4162
Reloadhttps://github.com/mkdocs/mkdocs/pull/4162
Reloadhttps://github.com/mkdocs/mkdocs/pull/4162
mkdocshttps://github.com/mkdocs
mkdocshttps://github.com/mkdocs/mkdocs
Codehttps://github.com/mkdocs/mkdocs
Issues120 (120)https://github.com/mkdocs/mkdocs/issues
Pull requests63 (63)https://github.com/mkdocs/mkdocs/pulls
Discussionshttps://github.com/mkdocs/mkdocs/discussions
Actionshttps://github.com/mkdocs/mkdocs/actions
Security and qualityhttps://github.com/mkdocs/mkdocs/security
Insightshttps://github.com/mkdocs/mkdocs/pulse
https://github.com/mkdocs/mkdocs
Mubashir78https://github.com/Mubashir78
mkdocs:masterhttps://github.com/mkdocs/mkdocs/tree/master
Mubashir78:fix/sigterm-cleanup-servehttps://github.com/Mubashir78/mkdocs/tree/fix/sigterm-cleanup-serve
Conversationhttps://github.com/mkdocs/mkdocs/pull/4162
Commits1 (1)https://github.com/mkdocs/mkdocs/pull/4162/commits
Checkshttps://github.com/mkdocs/mkdocs/pull/4162/checks
Files changedhttps://github.com/mkdocs/mkdocs/pull/4162/files
fix: handle SIGTERM in serve command to clean up temp site_dirhttps://github.com/mkdocs/mkdocs/pull/4162#top
Mubashir78https://github.com/Mubashir78
mkdocs:masterhttps://github.com/mkdocs/mkdocs/tree/master
Mubashir78:fix/sigterm-cleanup-servehttps://github.com/Mubashir78/mkdocs/tree/fix/sigterm-cleanup-serve
https://github.com/Mubashir78
Mubashir78https://github.com/Mubashir78
Jul 7, 2026https://github.com/mkdocs/mkdocs/pull/4162#issue-4825524655
#3905https://github.com/mkdocs/mkdocs/issues/3905
Please reload this pagehttps://github.com/mkdocs/mkdocs/pull/4162
https://github.com/Mubashir78
fix: handle SIGTERM in serve command to clean up temp site_dirhttps://github.com/mkdocs/mkdocs/pull/4162/commits/32adfd0ba2b97cf301b6615fa0d5e8e3903d9227
32adfd0https://github.com/mkdocs/mkdocs/pull/4162/commits/32adfd0ba2b97cf301b6615fa0d5e8e3903d9227
https://github.com/OKAN-SOFTWARE
OKAN-SOFTWAREhttps://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.pyhttps://github.com/mkdocs/mkdocs/pull/4162/files/32adfd0ba2b97cf301b6615fa0d5e8e3903d9227#diff-6ce1f9285defedc650e776dc5832321bc5297c681ac941dac31982ee237c7589
OKAN-SOFTWAREhttps://github.com/OKAN-SOFTWARE
Oct 28, 2026https://github.com/mkdocs/mkdocs/pull/4162#discussion_r4398174569
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/mkdocs/mkdocs/pull/4162
https://github.co/hiddenchars
https://github.com/mkdocs/mkdocs/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://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 pagehttps://github.com/mkdocs/mkdocs/pull/4162
"mkdocs serve" does not cleanup after a SIGTERM https://github.com/mkdocs/mkdocs/issues/3905
Please reload this pagehttps://github.com/mkdocs/mkdocs/pull/4162
https://github.com/Mubashir78
https://github.com/OKAN-SOFTWARE
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.