[svn] commit: r1690 - /trunk/src/bin/bind10/bind10.py.in
BIND 10 source code commits
bind10-changes at lists.isc.org
Wed Apr 7 22:45:47 UTC 2010
Author: jinmei
Date: Wed Apr 7 22:45:46 2010
New Revision: 1690
Log:
keep stderr for child processes if -v is specified.
Modified:
trunk/src/bin/bind10/bind10.py.in
Modified: trunk/src/bin/bind10/bind10.py.in
==============================================================================
--- trunk/src/bin/bind10/bind10.py.in (original)
+++ trunk/src/bin/bind10/bind10.py.in Wed Apr 7 22:45:46 2010
@@ -108,6 +108,10 @@
spawn_stdout = self.dev_null
else:
spawn_stdout = None
+ if options.verbose:
+ spawn_stderr = sys.stderr
+ else:
+ spawn_stderr = spawn_stdout
# Environment variables for the child process will be a copy of those
# of the boss process with any additional specific variables given
# on construction (self.env).
@@ -118,7 +122,7 @@
self.process = subprocess.Popen(self.args,
stdin=subprocess.PIPE,
stdout=spawn_stdout,
- stderr=spawn_stdout,
+ stderr=spawn_stderr,
close_fds=True,
env=spawn_env,)
self.pid = self.process.pid
@@ -296,7 +300,7 @@
if self.verbose:
sys.stdout.write("Started b10-auth (PID %d)\n" % auth.pid)
- # start the b10-xfrin
+ # start b10-xfrin
if self.verbose:
sys.stdout.write("Starting b10-xfrin\n")
try:
More information about the bind10-changes
mailing list