summaryrefslogtreecommitdiffstats
path: root/globals.pl
diff options
context:
space:
mode:
Diffstat (limited to 'globals.pl')
-rw-r--r--globals.pl3
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