On 18 Mar 2017, at 4:17, David Preece wrote:
Hi,
I'm running zlogin as a subprocess under Python
(https://docs.python.org/3/library/pty.html). This happens by forking
the pty then spawning pty.spawn in the child process. This has a
callback function that takes a file descriptor from which it can read
data. It works absolutely fine for maybe a 20-odd invocations then the
callback just stops being called back (it's not blocking anywhere in
the callback).
Has anyone seen anything like this before? I don't really understand
the whole pty, forking and in particular zfd business...
From the pty documentation for Python3:
----
35.8. pty — Pseudo-terminal utilities
Source code: Lib/pty.py
The pty module defines operations for handling the pseudo-terminal
concept: starting another process and being able to write to and read
from its controlling terminal programmatically.
Because pseudo-terminal handling is highly platform dependent, there is
code to do it only for Linux. (The Linux code is supposed to work on
other platforms, but hasn’t been tested yet.)
----
It looks like you've volunteered for the testing :-)
-------------------------------------------
smartos-discuss
Archives: https://www.listbox.com/member/archive/184463/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00
Modify Your Subscription:
https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb
Powered by Listbox: http://www.listbox.com