in reply to Backticks and SIGALRM
I would also like to see a good solution to that problem.
I worked around it the other day by
- forking
- Setting execution time limit in the child with BSD::Resource
- writing result to a temporary file
- in the parent, wait for the child and read the temp file
This is rather messy (and probably not very secure because the handling of temporary files is tricky). And I couldn't find a sandbox executer on cpan :(
BTW I needed that mess for an evalbot for #perl6.
|
---|
In Section
Seekers of Perl Wisdom