Skip to content
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

Container exits on SIGWINCH #9

Closed
ChestersGarage opened this issue Dec 25, 2015 · 5 comments
Closed

Container exits on SIGWINCH #9

ChestersGarage opened this issue Dec 25, 2015 · 5 comments

Comments

@ChestersGarage
Copy link

Hello,

In -it mode, the container exited just by me opening a new tab in the terminal window (Ubuntu 14.04 host). Logged output:

[Fri Dec 25 02:41:50.249974 2015] [mpm_event:notice] [pid 1:tid 139752883230592] AH00492: caught SIGWINCH, shutting down gracefully

Thanks!

@yosifkit
Copy link
Member

I think this is an issue of how httpd handles this particular signal. Is there a need to run it interactively? Or would -d instead of -it followed by a docker logs --follow myhttpd

@tianon
Copy link
Member

tianon commented Dec 28, 2015 via email

@tianon
Copy link
Member

tianon commented Aug 22, 2016

I've filed docker-library/docs#669 to update the image description to avoid this issue.

@russau
Copy link

russau commented May 26, 2018

From the ASF Bugzilla - commenting here with the hopes it saves the next person debugging this some time!

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.

https://bz.apache.org/bugzilla/show_bug.cgi?id=50669

@geoffreywiseman
Copy link

This happens all the time to me -- I run it in the foreground when I'm developing sometimes, although I guess I'm going to have to stop doing that. I'm not touching the terminal window, but for some reason, there's a lot of SIGWINCHes happening.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants