]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Backported patch for bug 92263; patch applies cleanly to the 2_14_1-BRANCH, so backpo...
authorpreed%sigkill.com <>
Mon, 27 May 2002 07:43:49 +0000 (07:43 +0000)
committerpreed%sigkill.com <>
Mon, 27 May 2002 07:43:49 +0000 (07:43 +0000)
globals.pl

index 3675a60435e99c4a61e745fd67f8cfe40c3b5480..cf273e8247c367433dc9dcafe438908e6eae7945 100644 (file)
@@ -141,6 +141,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