From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: Asynchronous DNS Date: Sat, 13 Feb 2016 15:04:36 +1100 Message-ID: <87twldgsrv.fsf@gnus.org> References: <87si17evk6.fsf@gnus.org> <83twlnvcz2.fsf@gnu.org> <87vb63obm3.fsf@gnus.org> <87r3gqmg6g.fsf@gnus.org> <83egcqtfnm.fsf@gnu.org> <86mvrdmk8p.fsf@realize.ch> <877fihjo4m.fsf@gnus.org> <86io20n3xn.fsf@realize.ch> <8760y055l1.fsf@gnus.org> <8660xzmyyr.fsf@realize.ch> <87pow7ocyw.fsf@gnus.org> <861t8nmxlj.fsf@realize.ch> <87y4auiurw.fsf@gnus.org> <86k2me8dee.fsf@realize.ch> <83a8n9ddk5.fsf@gnu.org> <864mdh8vj5.fsf@realize.ch> <87pow579kt.fsf@gnus.org> <86ziv87st0.fsf@realize.ch> <87vb5u4qtq.fsf@gnus.org> <86egci6xvk.fsf@realize.ch> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1455336326 26173 80.91.229.3 (13 Feb 2016 04:05:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 13 Feb 2016 04:05:26 +0000 (UTC) Cc: emacs-devel@gnu.org To: Alain Schneble Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Feb 13 05:05:17 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aURSO-000395-Ns for ged-emacs-devel@m.gmane.org; Sat, 13 Feb 2016 05:05:16 +0100 Original-Received: from localhost ([::1]:38862 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aURSK-0005QG-GI for ged-emacs-devel@m.gmane.org; Fri, 12 Feb 2016 23:05:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42731) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aURSG-0005NK-3F for emacs-devel@gnu.org; Fri, 12 Feb 2016 23:05:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aURSC-0000Mp-TT for emacs-devel@gnu.org; Fri, 12 Feb 2016 23:05:08 -0500 Original-Received: from hermes.netfonds.no ([80.91.224.195]:39009) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aURSC-0000Mh-M4 for emacs-devel@gnu.org; Fri, 12 Feb 2016 23:05:04 -0500 Original-Received: from cpe-60-225-211-161.nsw.bigpond.net.au ([60.225.211.161] helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1aURRo-00021F-Lm; Sat, 13 Feb 2016 05:04:41 +0100 In-Reply-To: <86egci6xvk.fsf@realize.ch> (Alain Schneble's message of "Fri, 12 Feb 2016 11:12:15 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) X-MailScanner-ID: 1aURRo-00021F-Lm MailScanner-NULL-Check: 1455941082.84605@pVnCaSOgjUEDJey3tw+Iyg X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.224.195 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:199856 Archived-At: Alain Schneble 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