RE: capturing output from running process crashes gtk2
- From: "Roderich Schupp (ext)" <Roderich Schupp ext BenQ com>
- To: "Ratcliffe, Jeffrey (Peters)" <Jeffrey Ratcliffe External eads com>, <gtk-perl-list gnome org>
- Subject: RE: capturing output from running process crashes gtk2
- Date: Thu, 3 Aug 2006 10:23:35 +0200
Scalar filehandles would definitely be the way to go, but
unfortunately,
open3() with scalar filehandles is buggy... it doesn't set $error
properly.
Thanks for the info. I can still use $write, leaving \*ERROR,
and then the warning is gone.
Or, as a workaround, initialize $error with an IO::Handle:
use IO::Handle;
my $error = IO::handle->new;
my $pid = open3($write, $read , $error, ...);
Cheers, Roderich
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]