Brad Bowman wrote:

While trying out a sneaky:

if ($ENV{PAR_CLEAN}) {
    my $zip = $PAR::LibCache{$ENV{PAR_PROGNAME}};
    PAR::_extract_inc($zip, 1);
}

In my wrapper script, I found that this works in one mode of
operation, but when the application forks a child process
that completes early, the contents of the temp-$pid/inc dir
are partially deleted.

Just punishment for calling an internal method, perhaps.

Another note on this issue: clearing $ENV{PAR_CLEAN} in the
child process after a fork prevented the premature cleanup of
the temp directories.

Brad

Reply via email to