From 901581060b6f1b6e7ea46d83223d93cc0d3f93ff Mon Sep 17 00:00:00 2001 From: "justdave%syndicomm.com" <> Date: Mon, 1 Apr 2002 06:56:41 +0000 Subject: 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 --- globals.pl | 3 +++ 1 file changed, 3 insertions(+) (limited to 'globals.pl') 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 -- cgit v1.2.3-24-g4f1b