Tell subprocess we're finished before waiting for it
p4raw-id: //depot/vmsperl@5297
print "1..10\n";
-$perl = "$^X -I../lib";
+$perl = qq[$^X "-I../lib"];
#
# commands run 4 perl programs. Two of these programs write a
autoflush FH4 1;
print FH4 "ok 9\n";
print "# waiting for process $pid4 to exit\n";
+#VMS: Send an EOF to convince the subprocess to exit as well
+if ($^O eq 'VMS') { use VMS::Stdio qw(&writeof); writeof(FH4); }
$reap_pid = waitpid $pid4, 0;
print "# reaped pid $reap_pid != $pid4\nnot "
- unless $reap_pid == $pid4;
+ unless $reap_pid == $pid4;
print "ok 10\n";