[poe-commits] SF.net SVN: poe: [2012] trunk/poe/lib/POE/Wheel/Run.pm
Brought to you by:
rcaputo
From: <rc...@us...> - 2006-07-24 22:17:40
|
Revision: 2012 Author: rcaputo Date: 2006-07-24 15:16:22 -0700 (Mon, 24 Jul 2006) ViewCVS: http://svn.sourceforge.net/poe/?rev=2012&view=rev Log Message: ----------- Remove a discussion of StderrEvent's parameters from the constructor argument documentation. Reference the event names documentation from the constructor argument section to EVENTS AND PARAMETERS, later in the document, where these things are documented in more detail. Thanks to Guillermo Roditi for pointing out the problem. Modified Paths: -------------- trunk/poe/lib/POE/Wheel/Run.pm Modified: trunk/poe/lib/POE/Wheel/Run.pm =================================================================== --- trunk/poe/lib/POE/Wheel/Run.pm 2006-07-23 17:07:36 UTC (rev 2011) +++ trunk/poe/lib/POE/Wheel/Run.pm 2006-07-24 22:16:22 UTC (rev 2012) @@ -1267,6 +1267,9 @@ =item StderrEvent +See L<EVENTS AND PARAMETERS> below for a more detailed description of +these events and their parameters. + C<CloseEvent> contains the name of an event to emit when the child process closes all its output handles. This is a consistent notification that the child will not be sending any more output. It @@ -1275,17 +1278,13 @@ C<ErrorEvent> contains the name of an event to emit if something fails. It is optional and if omitted, the wheel will not notify its -session if any errors occur. The event receives 5 parameters as -follows: ARG0 = the return value of syscall(), ARG1 = errno() - the -numeric value of the error generated, ARG2 = error() - a descriptive -for the given error, ARG3 = the wheel id, and ARG4 = the handle on -which the error occurred (stdout, stderr, etc.) +session if any errors occur. Wheel::Run requires at least one of the following three events: C<StdinEvent> contains the name of an event that Wheel::Run emits -whenever all its output has been flushed to the child process' STDIN -handle. +whenever everything queued by its put() method has been flushed to the +child's STDIN handle. C<StdoutEvent> and C<StderrEvent> contain names of events that Wheel::Run emits whenever the child process writes something to its @@ -1477,8 +1476,9 @@ parameters: C<ARG0> contains the name of the operation that failed. It may be -'read' or 'write' or 'fork' or 'exec' or something. The actual values -aren't yet defined. Note: This is not necessarily a function name. +'read', 'write', 'fork', 'exec' or the name of some other function or +task. The actual values aren't yet defined. Note: This is not +necessarily a function name. C<ARG1> and C<ARG2> hold numeric and string values for C<$!>, respectively. @@ -1511,9 +1511,9 @@ =item StderrEvent StdoutEvent and StderrEvent contain names for events that Wheel::Run -emits whenever the child process makes output. StdoutEvent contains -information the child wrote to its STDOUT handle, and StderrEvent -includes whatever arrived from the child's STDERR handle. +emits whenever the child process generates new output. StdoutEvent +contains information the child wrote to its STDOUT handle, and +StderrEvent includes whatever arrived from the child's STDERR handle. Both of these events come with two parameters. C<ARG0> contains the information that the child wrote. C<ARG1> holds the wheel's unique This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |