From 9b26ca71ff847e30f5bbd7a8e8deb0504a5d0dfd Mon Sep 17 00:00:00 2001 From: "preed%sigkill.com" <> Date: Mon, 27 May 2002 07:43:49 +0000 Subject: [PATCH] Backported patch for bug 92263; patch applies cleanly to the 2_14_1-BRANCH, so backport/r/r2=preed --- globals.pl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/globals.pl b/globals.pl index 3675a60435..cf273e8247 100644 --- a/globals.pl +++ b/globals.pl @@ -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 -- 2.47.2