Like sympathy, attaching via xenuse causes xenuse to send output from
the host to its own stdout.
But we don't want the ts-logs-capture stdout to contain this serial
output, interleaved with its own log messages. We'll capture the
whole serial log from the xenuse logfile. So redirect it to /dev/null.
I have checked that xenuse does (at least sometimes, eg when given a
nonexistent hostname) use stderr when something actually goes wrong.
Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
---
v17: New patch
my $xenuse= $c{XenUsePath} || "xenuse";
- open XENUSEWRITE, "|$xenuse -t $ho->{Name}" or die $!;
+ open XENUSEWRITE, "|$xenuse -t $ho->{Name} >/dev/null" or die $!;
autoflush XENUSEWRITE 1;
$mo->keys_write('force attach', "\x05cf", 1); # ^E c f == force attach