Continual::Process::Helper - fork/run helper functions
Continual::Process->new( name => 'test', code => prepare_fork(sub { say 'hello new process' }), ); #or Continual::Process->new( name => 'test', code => prepare_run($^X, '-ne "sleep 1"'), );
This module contains helper functions for help generate fork/run CodeRef's
prepare and return correct fork CodeRef which returns PID
prepare and return correct (multiplatform) CodeRef which returns PID
for Windows use Win32::Process, for other platform fork-exec pattern
set C_P_INSTANCE_ID environment variable with $instance-id>
$instance-
Copyright (C) Avast Software.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Jan Seidl <seidl@avast.com>
To install Continual::Process, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Continual::Process
CPAN shell
perl -MCPAN -e shell install Continual::Process
For more information on module installation, please visit the detailed CPAN module installation guide.