diff options
author | matthew <matthew> | 2008-02-01 15:14:47 +0000 |
---|---|---|
committer | matthew <matthew> | 2008-02-01 15:14:47 +0000 |
commit | a93da0a185d419b3d2a0241af7ec6cddaef7f6bf (patch) | |
tree | 1e97802f568672ea6338d4475adb12b9548ec9af | |
parent | 6a4866e9c83dff1e57813a56552cf4e22453a281 (diff) |
Can't do this as accept() in FCGI (via CGI::Fast) blocks, gah. But this means
SIGTERM and SIGUSR1 signals will not be honoured until the /next/ request (better
than instantly terminating, though!). Need to patch FCGI.pm to return on
interrupt, but that still doesn't fix the few milliseconds between accept()
returning and the flag being set - will need to alter, or stop using,
CGI::Fast...
-rw-r--r-- | perllib/Page.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/perllib/Page.pm b/perllib/Page.pm index c3f67f325..16122693c 100644 --- a/perllib/Page.pm +++ b/perllib/Page.pm @@ -6,7 +6,7 @@ # Copyright (c) 2006 UK Citizens Online Democracy. All rights reserved. # Email: matthew@mysociety.org; WWW: http://www.mysociety.org/ # -# $Id: Page.pm,v 1.76 2008-02-01 00:21:51 matthew Exp $ +# $Id: Page.pm,v 1.77 2008-02-01 15:14:47 matthew Exp $ # package Page; @@ -39,7 +39,7 @@ my $handling_request = 0; $SIG{TERM} = $SIG{USR1} = sub { $exit_requested = 1; - exit(0) unless $handling_request; + # exit(0) unless $handling_request; }; sub do_fastcgi { |