"Lin Jen-Shin (godfat)" <god...@godfat.org> wrote:
> However instead of setting shutdown_timeout, I think I would probably
> need to make the application know that the server is shutting down,
> and stop right there instead of waiting for full 60 seconds.
> 
> Not sure if I could do this without talking to yahns directly...

This is a Rack app?  I really don't want to introduce custom APIs for
this which would lock Rack users down to yahns.

I suppose you could chain signal handlers, though:

  orig_quit = nil
  orig_quit = trap(:QUIT) do
    app_specific_quit
    orig_quit.call
  end

(Ditto for TERM/INT, totally untested)
--
unsubscribe: yahns-public+unsubscr...@yhbt.net
archive: http://yhbt.net/yahns-public/

Reply via email to