diff options
author | gerv%gerv.net <> | 2002-03-28 15:57:02 +0000 |
---|---|---|
committer | gerv%gerv.net <> | 2002-03-28 15:57:02 +0000 |
commit | a6123ce8c608e64ba111e30481b28297f61849aa (patch) | |
tree | dc953104b2360c095ffc64ca0106f012da46aa5c /globals.pl | |
parent | b5cbca2fd02b1cbf2b50a40fa6dad42da6b43d1e (diff) | |
download | bugs-a6123ce8c608e64ba111e30481b28297f61849aa.tar bugs-a6123ce8c608e64ba111e30481b28297f61849aa.tar.gz bugs-a6123ce8c608e64ba111e30481b28297f61849aa.tar.bz2 bugs-a6123ce8c608e64ba111e30481b28297f61849aa.tar.xz bugs-a6123ce8c608e64ba111e30481b28297f61849aa.zip |
Bug 104589 - prevent user closing window from terminating Bugzilla scripts. Patch by Gerv <gerv@mozilla.org>, r=justdave, myk
Diffstat (limited to 'globals.pl')
-rw-r--r-- | globals.pl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/globals.pl b/globals.pl index cac9669a5..2b35a45cc 100644 --- a/globals.pl +++ b/globals.pl @@ -91,6 +91,12 @@ delete @::ENV{'PATH', 'IFS', 'CDPATH', 'ENV', 'BASH_ENV'}; # system call $::ENV{'PATH'} = ''; +# Ignore SIGTERM and SIGPIPE - this prevents DB corruption. If the user closes +# their browser window while a script is running, the webserver sends these +# signals, and we don't want to die half way through a write. +$::SIG{TERM} = 'IGNORE'; +$::SIG{PIPE} = 'IGNORE'; + # Contains the version string for the current running Bugzilla. $::param{'version'} = '2.15'; |