emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Asynchronous DNS


From: Lars Ingebrigtsen
Subject: Re: Asynchronous DNS
Date: Sat, 13 Feb 2016 15:04:36 +1100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

Alain Schneble <address@hidden> writes:

> Currently, IINW, `set-process-coding-system' calls
> `setup_process_coding_systems' which basically requires infd/outfd to
> /complete/ its "task".  Otherwise it just returns.

Are you thinking about this code?

setup_process_coding_systems (Lisp_Object process)
{
#ifdef subprocesses
  struct Lisp_Process *p = XPROCESS (process);
  int inch = p->infd;
  int outch = p->outfd;
  Lisp_Object coding_system;

  if (inch < 0 || outch < 0)
    return;

With :nowait t now, inch/outch will never be zero here, because we've
crated the sockets, even if we haven't connected them...  So it seems
like it'll complete whatever it's doing even if those sockets aren't
connected.  Possibly.

> Later in the flow, `connect_network_socket' will be called and it
> invokes `set_network_socket_coding_system' near the end which in turn
> invokes `setup_process_coding_systems'.

No, that code is called in make-network-process, so it's done before the
erc.el calls set-process-coding-system, so that's fine.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no



reply via email to

[Prev in Thread] Current Thread [Next in Thread]