This file is indexed.

/usr/share/perl5/Object/Remote/Node.pm is in libobject-remote-perl 0.004000-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
package Object::Remote::Node;

use strictures 1;
use Object::Remote::Connector::STDIO;
use Object::Remote::Logging qw(:log :dlog);
use Object::Remote::WatchDog;
use Object::Remote;

sub run {
  my ($class, %args) = @_;
  log_trace { "run() has been invoked on remote node" };

  my $c = Object::Remote::Connector::STDIO->new->connect;

  $c->register_class_call_handler;

  my $loop = Object::Remote->current_loop;

  $c->on_close->on_ready(sub {
    log_debug { "Node connection with call handler has closed" };
    $loop->want_stop
  });

  Dlog_trace { "Node is sending 'Shere' to $_" } $c->send_to_fh;
  print { $c->send_to_fh } "Shere\n";

  log_debug { "Node is going to start the run loop" };
  #TODO the alarm should be reset after the run loop starts
  #at a minimum - the remote side node should probably send
  #a command that clears the alarm in all instances - even
  #if the Object::Remote::Watchdog is not being used
  if ($args{watchdog_timeout}) {
    Object::Remote::WatchDog->instance(timeout => $args{watchdog_timeout});
  } else {
    #reset connection watchdog from the fatnode
    alarm(0);
  }
  $loop->want_run;
  $loop->run_while_wanted;
  log_debug { "Run loop invocation in node has completed" };
}

1;