summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjustdave%syndicomm.com <>2002-04-01 08:56:41 +0200
committerjustdave%syndicomm.com <>2002-04-01 08:56:41 +0200
commit901581060b6f1b6e7ea46d83223d93cc0d3f93ff (patch)
tree337749b1606e7dd9b03fff66d863076a89765f73
parentd8dad92ff903380dfec153f254ec671fbe91f969 (diff)
downloadbugzilla-901581060b6f1b6e7ea46d83223d93cc0d3f93ff.tar.gz
bugzilla-901581060b6f1b6e7ea46d83223d93cc0d3f93ff.tar.xz
Fix for bug 92263: Don't output SQL commands before the footer when syncshadowdb fails (only affects Bugzillas that are running shadow databases)
r= bbaetz, gerv
-rw-r--r--globals.pl3
1 files changed, 3 insertions, 0 deletions
diff --git a/globals.pl b/globals.pl
index 2b35a45cc..562237a68 100644
--- a/globals.pl
+++ b/globals.pl
@@ -150,6 +150,9 @@ sub SyncAnyPendingShadowChanges {
return;
} elsif (defined $pid) {
# child process code runs here
+ my $redir = ($^O =~ /MSWin32/i) ? "NUL" : "/dev/null";
+ open STDOUT,">$redir";
+ open STDERR,">$redir";
exec("./syncshadowdb","--") or die "Unable to exec syncshadowdb: $!";
# the idea was that passing the second parameter tricks it into
# using execvp instead of running a shell. Not really necessary since