httpd container unexpectedly stops when resizing terminal window
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 25/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- docker
- 领域
- devops, infrastructure
调研方向
Start by reproducing the issue with docker run httpd:latest while resizing the terminal, then read the reported Apache httpd SIGWINCH behavior and the linked Apache bug discussion. Done would require an agreed container-side resolution or documented workaround, but the issue does not identify a file, test, or accepted approach.
由索引模型根据 Issue 内容生成。
描述
When one starts the container and resizes the terminal window, it suddenly stops.
To reproduce:
docker run httpd:latest
[...]
[resizing window]
[Tue Jan 13 11:25:11.623227 2026] [core:notice] [pid 1:tid 1] AH00094: Command line: 'httpd -D FOREGROUND'
[Tue Jan 13 11:25:13.981184 2026] [mpm_event:notice] [pid 1:tid 1] AH00492: caught SIGWINCH, shutting down gracefully
The reason, it appears, is that resizing a terminal causes a SIGWINCH signal, and Apache httpd has decided to reuse that signal as a "graceful server shutdown" signal. See also:
https://stackoverflow.com/a/32647166/3780436
https://httpd.apache.org/docs/2.2/stopping.html#gracefulstop
https://bz.apache.org/bugzilla/show_bug.cgi?id=50669
The latter link is their bugtracker, which, unfortunately, is only accessible with an account. But the bug has been closed as "WONTFIX". (Comment from Apache dev in 2011: "You are correct that SIGWINCH is used to signal a windows size change to the applications running on a terminal. Due to the lack of other signal numbers and given the fact that httpd normally runs detached from a terminal the SIGWINCH signal was chosen to instruct httpd to do a graceful shutdown. So this works as designed.")
I think this is a poor design decision by Apache httpd, but, apparently, intentional. But I will also add a comment that, maybe, in 2026 this is an issue to be seen differently.
- 主要语言
- Dockerfile
- 星标
- 319
- 派生
- 342
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
docker-library/httpd 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 25/100
docker-library/httpd#272 · 5 条评论 ·
-
难度 4/5 3-5 天 新手友好度 35/100
docker-library/httpd#267 · 1 条评论 · 1 个 reaction ·
-
难度 4/5 3-5 天 新手友好度 25/100
docker-library/httpd#243 · 10 条评论 ·
-
难度 3/5 半天 新手友好度 32/100
docker-library/httpd#234 · 1 条评论 ·
查看 docker-library/httpd 的全部 Issue
相似的 Issue
-
automation models
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
agentic-workflows
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
agentic-workflows
难度 1/5 1 小时以内 新手友好度 72/100
githubnext/gh-aw-cao#15017 ·
维护者通常 1 天内回复
-
CI: composer install fails — league/flysystem 1.x blocked by security advisory GHSA-cxf4-7mrp-vvpr未关闭devops type: bug
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复
-
python:3.15
难度 2/5 1-3 小时 新手友好度 68/100
DataDog/dd-trace-py#20662 ·
维护者通常 1 天内回复