Gunicorn sends info message Handling signal: winch

A winch signal (or SIGWINCH, short for Signal Window Change) is normally sent to applications when the terminal window size changes, so that applications know to redraw on the screen. However, gunicorn interprets it to shutdown the worker processes, but only when the application is daemonized. Daemonized is just another way of saying an application is running in the background. This means that while gunicorn isn’t running as a background process (i.e. it’s on your screen), it handles the signal and doesn’t shut down the worker processes.

So to answer your questions:

  1. Daemonized means an application is running in the background.
  2. You don’t have to take any action at all, when gunicorn is running in the background it won’t be getting any Winch signals, so you don’t have to worry about it shutting down.
  3. Winch is normally sent when a terminal window is resized (you can see this by resizing your terminal window while gunicorn is visible, you’ll see a lot of handling signal messages).

Leave a Comment

tech