Query: test::trap::builder::systemsafe
OS: mojave
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
Test::Trap::Builder::SystemSafe(3) User Contributed Perl Documentation Test::Trap::Builder::SystemSafe(3)NAMETest::Trap::Builder::SystemSafe - "Safe" output layer backend using File::TempVERSIONVersion 0.2.3DESCRIPTIONThis module provides an implementation systemsafe, based on File::Temp, for the trap's output layers. This implementation insists on reopening the output file handles with the same descriptors, and therefore, unlike Test::Trap::Builder::TempFile and Test::Trap::Builder::PerlIO, is able to trap output from forked-off processes, including system(). See also Test::Trap (:stdout and :stderr) and Test::Trap::Builder (output_layer).CAVEATSUsing File::Temp, we need privileges to create tempfiles. We need disk space for the output of every trap (it should clean up after the trap is sprung). Disk access may be slow -- certainly compared to the in-memory files of PerlIO. If the file handle we try to trap using this backend is on an in-memory file, it would not be available to other processes in any case. Rather than change the semantics of the trapped code or silently fail to trap output from forked-off processes, we just raise an exception in this case. If there is another file handle with the same descriptor (f ex after an "open OTHER, '>&=', THIS"), we can't get that file descriptor. Rather than silently fail, we again raise an exception. Threads? No idea. It might even work correctly.BUGSPlease report any bugs or feature requests directly to the author.AUTHOREirik Berg Hanssen, "<ebhanssen@allverden.no>" COPYRIGHT & LICENSE Copyright 2006-2012 Eirik Berg Hanssen, All Rights Reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.18.2 2017-10-06 Test::Trap::Builder::SystemSafe(3)
Related Man Pages |
---|
test::trap::builder(3) - osx |
test::trap::builder::systemsafe(3) - osx |
test::builder::module(3pm) - osx |
test::trap(3pm) - debian |
test::trap::builder::systemsafe(3pm) - debian |
Similar Topics in the Unix Linux Community |
---|
"Trap 3e" OBP error on Ultra 5. |
line length |
Skyway Builder Community Edition 6.0.2 (Default branch) |
Bot Trap |
Trap explanation? |