On Sat, Dec 9, 2017 at 5:12 PM, Johann 'Myrkraverk' Oskarsson
<johann(a)myrkraverk.com> wrote:
There is a very rusty API called connec_to_file_descriptor() in
process-unix.c. I am using it in an emodule.
It works fine, from what I can tell. The problem I am encountering
now, is that when the in fd is a pipe, and the pipe has
less-than-internal-buffer-length it blocks on a subsequent read()
system call.
Ok, so I "worked around this problem" by setting the read end of the
pipe to nonblocking mode before calling connect_to_file_descriptor().
I don't really call that an acceptable solution. It'll be much better if
XEmacs takes care of that on its own. Possibly inside
unix_init_process_io_handles()
though I don't know if it'll have any adverse effect on normal process
handling, but I'll try to experiment with that some day.
--
Johann
I'm not from the internet, I just work there.