dagolden / Capture-Tiny

(Perl) Capture STDOUT and STDERR from Perl, XS or external programs
http://search.cpan.org/dist/Capture-Tiny/
39 stars 19 forks source link

Documentation should warn that this module should never be used in multiple threads in parallel #49

Closed tomasz-lukaszewski closed 7 years ago

tomasz-lukaszewski commented 7 years ago

When two or more threads are trying to redirect descriptors (stdout and stderr) in parallel, sooner or later bad things will happen. For actual explanation see an issue reported for IO::CaptureOutput, this is the same problem.