Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

httpd container unexpectedly stops when resizing terminal window

未关闭
#280 1 条评论 7 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
25/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
docker

调研方向

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,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

docker-library/httpd 的其他 Issue

查看 docker-library/httpd 的全部 Issue

相似的 Issue

更多 DevOps Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。