[Xorp-cvs] XORP cvs commit: xorp/libxorp
Pavlin Radoslavov
pavlin@icir.org
Fri, 17 Feb 2006 07:52:09 GMT
CVSROOT: /usr/local/share/doc/apache/cvs
Module name: xorp
Changes by: pavlin@xorpc.icir.org 2006-02-17 07:52:08 UTC
XORP CVS repository
Modified files:
libxorp run_command.cc run_command.hh
Log message:
* Split the close_output() method into close_stdout_output() and
close_stderr_output()
* If EOF is received on the stderr file reader, but we haven't received
EOF on the stdout reader, then call close_stderr_output() to close the
stderr file reader and remove it from the eventloop.
Previously, if we use RunCommand() and redirect stderr to stdout, then
the eventloop will keep spinning and utilizing the CPU because select()
will keep returning EOF event on the stderr file reader (until the
program executed by RunCommand exits).
This fixes Bugzilla entry #523
Bugzilla URL: http://www.xorp.org/bugzilla/show_bug.cgi?id=523
Revision Changes Path
1.23 +34 -10; commitid: 113e343f57e2e7ea6; xorp/libxorp/run_command.cc
1.12 +11 -2; commitid: 113e343f57e2e7ea6; xorp/libxorp/run_command.hh