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: Fri, 05 Feb 2016 13:31:07 +1100 Message-ID: <87wpqjevmc.fsf@gnus.org> References: <87si1gx6wz.fsf@gnus.org> <86y4b5zvzt.fsf@gmail.com> <8760y9kwrk.fsf@gnus.org> <87wpqpjgwy.fsf@gnus.org> <83a8nk1cxk.fsf@gnu.org> <87h9hrnc8x.fsf@gnus.org> <83powfzsqt.fsf@gnu.org> <87y4b393hl.fsf@gnus.org> <83io27ytu3.fsf@gnu.org> <87k2mmzkry.fsf@gnus.org> <83k2mlyet8.fsf@gnu.org> <87lh71nriy.fsf@gnus.org> <83zivgwi9c.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1454639516 29096 80.91.229.3 (5 Feb 2016 02:31:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 5 Feb 2016 02:31:56 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Feb 05 03:31:46 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 1aRWBS-0005GB-JA for ged-emacs-devel@m.gmane.org; Fri, 05 Feb 2016 03:31:42 +0100 Original-Received: from localhost ([::1]:45498 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aRWBR-00084g-UA for ged-emacs-devel@m.gmane.org; Thu, 04 Feb 2016 21:31:41 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47363) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aRWBO-00084S-5R for emacs-devel@gnu.org; Thu, 04 Feb 2016 21:31:39 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aRWBK-0007U9-WB for emacs-devel@gnu.org; Thu, 04 Feb 2016 21:31:38 -0500 Original-Received: from hermes.netfonds.no ([80.91.224.195]:34921) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aRWBK-0007U1-Ov; Thu, 04 Feb 2016 21:31:34 -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 1aRWAy-00017m-En; Fri, 05 Feb 2016 03:31:13 +0100 In-Reply-To: <83zivgwi9c.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 04 Feb 2016 18:30:07 +0200") User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.1.50 (gnu/linux) X-MailScanner-ID: 1aRWAy-00017m-En MailScanner-NULL-Check: 1455244273.60199@cXk+TAUGT7MQWtcXW8IUcw 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:199349 Archived-At: Eli Zaretskii writes: >> > If we introduce such a thread, its code needs to be carefully audited >> > for the above-mentioned gotchas. E.g., passing to it a C pointer to a >> > contents of a Lisp string is probably unsafe. It's not rocket science >> > to DTRT in this case (we already do that quite a lot on MS-Windows), >> > it just requires very careful programming and code review. >> >> Sure. But I think that for the getaddrinfo_a thing, it really is that >> simple. > > In that case, we don't launch threads of our own; libc does. So > that's not the case I was talking about. I was talking about replacing the call to getaddrinfo_a with our own thing, where we would spawn our own thread. And that replacement would be that simple, as I think I've said a few times now. :-) -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no