Article View: news.software.nn
Article #1088Problem opening pty/tty with perl
From: Rich Ragan
Date: Tue, 13 Nov 1990 17:17
Date: Tue, 13 Nov 1990 17:17
25 lines
1676 bytes
1676 bytes
I have a Perl script that uses pty/tty to communicate with another task. This all worked fine at patch level 28. I upgraded to patch level 37 (and also tried 40 as well) and found that the following (subsetted) part of the script shows the problem: open($pty,"+>/dev/ptyp1")|| die "cant open pty\n"; print "First open OK\n"; open($tty,"+</dev/ttyp1")|| die "cant open tty\n"; print "Second open OK\n"; close($pty); close($tty); With PL28, this all works fine. Both open's complete. With PL37 and PL40, the script always hangs on the second open. The more general code is actually trying all pty/tty pairs looking for a free one so the problem should not be the hardwired pty/tty name. Any ideas what might be going wrong? By the way, PL40 fails on the last of the tests for me as well (Mips RISC/OS based system). Thanks. -- Richard R. Ragan rrr@svl.cdc.com (408) 496-4340 Control Data Corporation--Silicon Valley Operations
Technical Details
Message-ID:
<28617@shamash.cdc.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!gmdzi!unido!mcsun!uunet!cs.utexas.edu!sun-barr!apple!agate!shelby!msi.umn.edu!cs.umn.edu!uc!shamash!rrrShow Full Headers
Complete Article Headers
Message-ID: <28617@shamash.cdc.com> Subject: Problem opening pty/tty with perl Date: Tue, 13 Nov 1990 17:17:50 +0000 From: rrr@u02.svl.cdc.com (Rich Ragan) Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!gmdzi!unido!mcsun!uunet!cs.utexas.edu!sun-barr!apple!agate!shelby!msi.umn.edu!cs.umn.edu!uc!shamash!rrr Newsgroups: news.software.nn Keywords: pty tty perl37 perl40 Sender: news@shamash.cdc.com Reply-To: rrr@svl.cdc.com Organization: Control Data Corporation, Silicon Valley Operations Lines: 25 Posted: Tue Nov 13 18:17:50 1990