X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/mLib-python/blobdiff_plain/b3c87d862e8f44754113ee9bf374e9fcfbc9e7ac..b51b6cf0b65c84c7b9e130719beede595cc1bfbd:/bres.pyx diff --git a/bres.pyx b/bres.pyx index ebc6262..162ff02 100644 --- a/bres.pyx +++ b/bres.pyx @@ -88,7 +88,7 @@ cdef class SelResolveByAddr (SelResolve): def __init__(me, addr, resolvedproc = None, failedproc = None): pass -cdef void _resfunc2(hostent *h, void *arg): +cdef void _resfunc(hostent *h, void *arg): cdef SelResolve r cdef int i r = arg @@ -107,10 +107,6 @@ cdef void _resfunc2(hostent *h, void *arg): addr.append(inet_ntoa((h.h_addr_list[i])[0])) i = i + 1 r.resolved(h.h_name, alias, addr) -cdef void _resfunc(hostent *h, void *arg): - PyEval_AcquireLock() - _resfunc2(h, arg) - PyEval_ReleaseLock() bres_exec(NULL) bres_init(&_sel)