FWIW, 141 is SIGPIPE. (signal 13 + WIFSIGNALED flag (128)) So something's happening in your RUN script that's causing it to write to a closed pipe. I hope this helps!
-Rob On Mon, 27 Mar 2017 11:51:03 +0300 Gabor Szabo <szab...@gmail.com> wrote: > Putting > > CATCH { default { put .^name, ': ', .Str } }; > > in the While loop helped with the restarting, but I am still not sure > if this is the expected behavior or not. > > > run.pl: > > while True { > say "Starting"; > shell("perl6 a.pl"); > CATCH { default { put .^name, ': ', .Str } }; > } > > > a.pl: > > print "in a.pl\n"; > exit(141); >