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: Thu, 04 Feb 2016 13:22:29 +1100
User-agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.1.50 (gnu/linux)

Eli Zaretskii <address@hidden> 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.  Everything is allocated and freed in the main thread, the
address lookup doesn't need to access anything Lispy, etc.  (This is how
the structure of the getaddrinfo_a library already works.)

>> Ok, but it's a problem when debugging in gdb, and not a problem for an
>> Emacs running without gdb?
>
> Only for the former, AFAIK.  GDB is complaining about a data structure
> it builds, not about something the executable does.

I see.

-- 
(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]