diff options
author | justdave%syndicomm.com <> | 2002-04-01 08:56:41 +0200 |
---|---|---|
committer | justdave%syndicomm.com <> | 2002-04-01 08:56:41 +0200 |
commit | 901581060b6f1b6e7ea46d83223d93cc0d3f93ff (patch) | |
tree | 337749b1606e7dd9b03fff66d863076a89765f73 | |
parent | d8dad92ff903380dfec153f254ec671fbe91f969 (diff) | |
download | bugzilla-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.pl | 3 |
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 |