Have you tried running truss -f on the python process? It sounds like something in there might be hanging (and so the master process is stuck waiting and thus never invokes the callback). Truss might help narrow things down.
On March 17, 2017 at 8:17:36 PM, David Preece ([email protected]) 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... Thanks, Dave *smartos-discuss* | Archives <https://www.listbox.com/member/archive/184463/=now> <https://www.listbox.com/member/archive/rss/184463/28937248-5f745c54> | Modify <https://www.listbox.com/member/?&> Your Subscription <http://www.listbox.com> ------------------------------------------- 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
