You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2019/03/25 08:14:19 UTC

[Bug 63283] New: -DFOREGROUND not usable due to SIGWINCH

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

            Bug ID: 63283
           Summary: -DFOREGROUND not usable due to SIGWINCH
           Product: Apache httpd-2
           Version: 2.4-HEAD
          Hardware: PC
                OS: Mac OS X 10.1
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core
          Assignee: bugs@httpd.apache.org
          Reporter: moritz@eysholdt.de
  Target Milestone: ---

Hello,

I wanted to run Apache with -DFOREGROUND so that I 
* can conveniently/efficiently develop and test Apache config files
* can watch logs in stdout/stderr
* can kill the process with CtRL+C
* can restart the process with whatever args I want

However, whenever I resize my console, I get 

[Mon Mar 25 08:01:49.545232 2019] [mpm_prefork:notice] [pid 494] AH00170:
caught SIGWINCH, shutting down gracefully
Terminated

Is there any way to use -DFOREGROUND in combination with an interactive
terminal?

I understand that SIGWINCH is internally used to initiate a graceful shutdown
and I don't want to question this design decision. Changing the signal was
dismissed as 'won't fix' here:
https://bz.apache.org/bugzilla/show_bug.cgi?id=50669

To reproduce, run `apache2 -DFOREGROUND` and resize your terminal.
If you don't have an apache config at hand, you may click here:
https://gitpod.io/#https://github.com/meysholdt/apache-in-gitpod-example/tree/apache_sigwinch_issue

This launches a Docker container on the server side with Apache to reproduce
the issue and an IDE in your browser. You also get a Bash Terminal in your
browser where you can interact with Apache. You'll need to go through Github
OAuth. 

So, in summary:
* How can I run apache as a foreground process without having it killed by the
next terminal resize?
* Could Apache maybe *not* listen to SIGWINCH when arg -DFOREGROUND is used?

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 63283] -DFOREGROUND not usable due to SIGWINCH

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=63283

Rich Bowen <rb...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |WONTFIX
             Status|NEW                         |RESOLVED

--- Comment #1 from Rich Bowen <rb...@apache.org> ---
Thank you for your report. As part of an effort to clean up our issue tracker,
we are closing tickets that have seen no activity for more than 5 years. If
this issue is still relevant to a current version of Apache httpd (2.4.x or
trunk), please reopen this ticket or open a new one with updated information.
We appreciate your contribution to the project.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org