X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=scpubgit%2FObject-Remote.git;a=blobdiff_plain;f=lib%2FObject%2FRemote%2FRole%2FConnector%2FPerlInterpreter.pm;h=312ee4c1209defe6d38f68590328bc07bbbbb1e2;hp=d7d583c6963a0d1b66693290401c2129a62ad7d1;hb=4c8c83d78afaf57a918d50198866b6d2a08acb75;hpb=a2434aabffbd0e7d170f2ab1180ec4244b4619a6 diff --git a/lib/Object/Remote/Role/Connector/PerlInterpreter.pm b/lib/Object/Remote/Role/Connector/PerlInterpreter.pm index d7d583c..312ee4c 100644 --- a/lib/Object/Remote/Role/Connector/PerlInterpreter.pm +++ b/lib/Object/Remote/Role/Connector/PerlInterpreter.pm @@ -1,6 +1,7 @@ package Object::Remote::Role::Connector::PerlInterpreter; use IPC::Open2; +use IO::Handle; use Object::Remote::ModuleSender; use Object::Remote::Handle; use Scalar::Util qw(blessed); @@ -43,6 +44,7 @@ sub _start_perl { sub _open2_for { my $self = shift; my ($foreign_stdin, $foreign_stdout, $pid) = $self->_start_perl(@_); + $foreign_stdin->autoflush(1); print $foreign_stdin 'BEGIN { $ENV{OBJECT_REMOTE_DEBUG} = 1 }'."\n" if $ENV{OBJECT_REMOTE_DEBUG}; print $foreign_stdin $self->fatnode_text