From 724f2f1175ab25fee43594756bcc742090c1cf91 Mon Sep 17 00:00:00 2001 From: Tom Weber Date: Fri, 18 Jun 2021 10:46:25 -0400 Subject: [PATCH] change forkpty to fork to test out --- saspy/sasioiom.py | 4 +++- saspy/sasiostdio.py | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/saspy/sasioiom.py b/saspy/sasioiom.py index b332f744..6f016ceb 100644 --- a/saspy/sasioiom.py +++ b/saspy/sasioiom.py @@ -416,12 +416,14 @@ def _startsas(self): pout = os.pipe() perr = os.pipe() + pidpty = (os.fork(),0) + ''' try: pidpty = os.forkpty() except: import pty pidpty = pty.fork() - + ''' if pidpty[0]: # we are the parent self.pid = pidpty[0] diff --git a/saspy/sasiostdio.py b/saspy/sasiostdio.py index 8e9ca255..b73deef6 100755 --- a/saspy/sasiostdio.py +++ b/saspy/sasiostdio.py @@ -325,12 +325,14 @@ def _startsas(self): pout = os.pipe() perr = os.pipe() + pidpty = (os.fork(),0) + ''' try: pidpty = os.forkpty() except: import pty pidpty = pty.fork() - + ''' if pidpty[0]: # we are the parent