X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FObject%2FRemote%2FFatNode.pm;h=a09680fb5b56f52c081471569bfba5b4f552a902;hb=4e4463355a9ec6afdc7983ee36daa9f11306d4fc;hp=6b65a25114652c5e03189999faabbb1a9303cf37;hpb=37efeb68748dd589455d8ae58d39e74700abdd67;p=scpubgit%2FObject-Remote.git diff --git a/lib/Object/Remote/FatNode.pm b/lib/Object/Remote/FatNode.pm index 6b65a25..a09680f 100644 --- a/lib/Object/Remote/FatNode.pm +++ b/lib/Object/Remote/FatNode.pm @@ -5,6 +5,8 @@ use Config; use B qw(perlstring); my @exclude_mods = qw(XSLoader.pm DynaLoader.pm); +#used by t/watchdog_fatnode +our $INHIBIT_RUN_NODE = 0; sub stripspace { my ($text) = @_; @@ -103,7 +105,11 @@ my $end = stripspace <<'END_END'; use strictures 1; use Object::Remote::Node; - Object::Remote::Node->run(watchdog_timeout => $WATCHDOG_TIMEOUT); + + unless ($Object::Remote::FatNode::INHIBIT_RUN_NODE) { + Object::Remote::Node->run(watchdog_timeout => $WATCHDOG_TIMEOUT); + } + END_END my %files = map +($mods{$_} => scalar do { local (@ARGV, $/) = ($_); <> }),