]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Fix for bug 92263: Don't output SQL commands before the footer when syncshadowdb...
authorjustdave%syndicomm.com <>
Mon, 1 Apr 2002 06:56:41 +0000 (06:56 +0000)
committerjustdave%syndicomm.com <>
Mon, 1 Apr 2002 06:56:41 +0000 (06:56 +0000)
r= bbaetz, gerv

globals.pl

index 2b35a45ccbacafb2cb3da6e529f8ff973f290bbc..562237a6885553268688d34afde71d049696a96e 100644 (file)
@@ -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