They way I remember it (taught to me waaay back when) is that, you fork twice, and the grandchild process that lives on becomes a daemon whose parent is the system "init" process, PID 1, after the parent and 1st-generation child process exit. Found general concept at http://www.farhadsaberi.com/perl/2013/02/perl-detach-process-daemon.html
How to implement that in raku, and if it works as intended in Windows... is left as an exercise to the reader! -y On Tue, Apr 7, 2020 at 2:42 PM Paul Procacci <pproca...@gmail.com> wrote: > https://docs.perl6.org/language/5to6-perlfunc#fork > https://docs.perl6.org/type/Thread > > I haven't tried myself but it's conceivable that you can start a new > thread that exec's some external program. > > On Tue, Apr 7, 2020 at 7:21 AM ToddAndMargo via perl6-users < > perl6-users@perl.org> wrote: > >> Hi All, >> >> Can a subroutine be released from the main program >> to go off on its own? (Is this called "forked"?) >> >> If not how do I do a `qqx` or a `run` that releases >> the program to go off on its own? >> >> Many thanks, >> -T >> > > > -- > __________________ > > :(){ :|:& };: >