Perl Parallel-ForkManager Module: Insecure temporary file usage
When running the below code which uses Parallel::ForkManager I get two sleep processes and not one as expected.
18748 pts/2 S+ 0:00 /usr/bin/perl ./fork.pl
18749 pts/2 S+ 0:00 /usr/bin/perl ./fork.pl
18750 pts/2 S+ 0:00 sleep 12345
18751 pts/2 S+ 0:00 sleep 12345
And also it doesn't execute the print commands until the sleep command exits.
Below is a simplified example of my problem.