13 Jan 2014 15:36:15 UTC
- Distribution: Proc-Lite
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (0)
- Testers (490 / 1 / 34)
- KwaliteeBus factor: 0
- 89.36% Coverage
- License: mit
- Activity24 month
- Download (34.18KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version++ed by:1 non-PAUSE userPRAVUS Jason Hord
- SEE ALSO
Proc::Hevy::Writer - A writer pipe implementation for Proc::Hevy
Proc::Hevy::Writer implements a writer pipe that writes data to a child process from a provided buffer. This is used when writing to a child process's
Creates a new
$nameis a symbolic name for the writer.
$bufferis the source mechanism to used for data written to the child process. It can either be a simple scalar, an
CODEreference or a
Performs actions suitable when running as part of the child process. This includes re-opening the provided
$handleto a filehandle that is created based on the type of source buffer configured in
new(). If no buffer was configured,
'/dev/null'is opened for reading.
Performs actions suitable when running as part of the parent process. This includes adding filehandles to the provided
$selectobject that should be monitored for writability.
Performs the actual write to the child process consuming data from the source buffer configured in
new(). When the source buffer is empty, applicable filehandles are closed and removed from the select object used in the call to
parent(). Any system errors are considered fatal.
None are known at this time, but if you find one, please feel free to submit a report to the author.
jason hord <firstname.lastname@example.org>
Copyright (c) 2009-2014, jason hord
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.