NAME
Continual::Process::Helper - fork/run helper functions
SYNOPSIS
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"'),
);
DESCRIPTION
This module contains helper functions for help generate fork/run CodeRef's
FUNCTIONS
prepare_fork($code_ref)
prepare and return correct fork CodeRef which returns PID
prepare_run($executable, @args)
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>
LICENSE
Copyright (C) Avast Software.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
AUTHOR
Jan Seidl <seidl@avast.com>