Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the IO-Pty-Easy CPAN distribution.

Report information
The Basics
Id: 30015
Status: resolved
Priority: 0/
Queue: IO-Pty-Easy

People
Owner: Nobody in particular
Requestors: jason.taylor [...] bluecoat.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



CC: "Hussey, Bob" <bob.hussey [...] bluecoat.com>
Subject: bug with IO::Pty::Easy::spawn
Date: Mon, 15 Oct 2007 11:55:18 -0700
To: <bug-io-pty-easy [...] rt.cpan.org>
From: "Taylor, Jason" <jason.taylor [...] bluecoat.com>
In my situation, I am using IO::Pty::Easy to run openssl s_server on cygwin. The first time my application uses the IO::Pty::Easy object, everything works fine. However, if I attempt to use it again, I get the following: Can't call method "slave" on an undefined value at /usr/lib/perl5/site_perl/5.8/IO/Pty/Easy.pm line 182 I am using the exact same parameters for both calls to IO::Pty::Easy::spawn, and I am calling kill and close on the previous IO::Pty::Easy object, and undef'ing it. Please let me know if you need any other information. Thanks! Jason Taylor Automation Engineer Blue Coat Systems, Inc. jason.taylor@bluecoat.com HAI CAN HAS STDIO? VISIBLE "HAI WORLD!" KTHXBYE
From: DOY [...] cpan.org
On Mon Oct 15 14:55:54 2007, jason.taylor@bluecoat.com wrote: Show quoted text
> In my situation, I am using IO::Pty::Easy to run openssl s_server on > cygwin. The first time my application uses the IO::Pty::Easy object, > everything works fine. However, if I attempt to use it again, I get the > following: > > > > Can't call method "slave" on an undefined value at > /usr/lib/perl5/site_perl/5.8/IO/Pty/Easy.pm line 182 > > > > I am using the exact same parameters for both calls to > IO::Pty::Easy::spawn, and I am calling kill and close on the previous > IO::Pty::Easy object, and undef'ing it. > > > > Please let me know if you need any other information. Thanks! > > > > Jason Taylor > > Automation Engineer > > Blue Coat Systems, Inc. > > jason.taylor@bluecoat.com > > HAI > CAN HAS STDIO? > VISIBLE "HAI WORLD!" > KTHXBYE
As mentioned in the documentation, once you call close() on an IO::Pty::Easy object, everything else you try to do with that instance will fail (since close() closes the underlying pty). If you want to reuse the object, you should only use kill() to stop the previous process, at which point you should be able to spawn() a new process on it. Jesse Luehrs