🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nn
1 messages
1 total messages Started by Rich Ragan Tue, 13 Nov 1990 17:17
Problem opening pty/tty with perl
#1088
Author: Rich Ragan
Date: Tue, 13 Nov 1990 17:17
25 lines
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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads