Ignore:
Timestamp:
Nov 14, 2012, 12:59:34 PM (13 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: update vendor to 3.6.0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vendor/current/lib/tevent/tevent.c

    r427 r740  
    8989        }
    9090
    91         e = talloc(talloc_autofree_context(), struct tevent_ops_list);
     91        e = talloc(NULL, struct tevent_ops_list);
    9292        if (e == NULL) return false;
    9393
     
    105105{
    106106        talloc_free(tevent_default_backend);
    107         tevent_default_backend = talloc_strdup(talloc_autofree_context(),
    108                                                backend);
     107        tevent_default_backend = talloc_strdup(NULL, backend);
    109108}
    110109
     
    115114{
    116115        tevent_select_init();
     116        tevent_poll_init();
    117117        tevent_standard_init();
    118118#ifdef HAVE_EPOLL
     
    263263  add a fd based event
    264264  return NULL on failure (memory allocation error)
    265 
    266   if flags contains TEVENT_FD_AUTOCLOSE then the fd will be closed when
    267   the returned fd_event context is freed
    268265*/
    269266struct tevent_fd *_tevent_add_fd(struct tevent_context *ev,
     
    617614        return ev->ops->loop_wait(ev, location);
    618615}
     616
     617
     618/*
     619  re-initialise a tevent context. This leaves you with the same
     620  event context, but all events are wiped and the structure is
     621  re-initialised. This is most useful after a fork() 
     622
     623  zero is returned on success, non-zero on failure
     624*/
     625int tevent_re_initialise(struct tevent_context *ev)
     626{
     627        tevent_common_context_destructor(ev);
     628
     629        return ev->ops->context_init(ev);
     630}
Note: See TracChangeset for help on using the changeset viewer.