Changeset 740 for vendor/current/lib/tevent/tevent.c
- Timestamp:
- Nov 14, 2012, 12:59:34 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/current/lib/tevent/tevent.c
r427 r740 89 89 } 90 90 91 e = talloc( talloc_autofree_context(), struct tevent_ops_list);91 e = talloc(NULL, struct tevent_ops_list); 92 92 if (e == NULL) return false; 93 93 … … 105 105 { 106 106 talloc_free(tevent_default_backend); 107 tevent_default_backend = talloc_strdup(talloc_autofree_context(), 108 backend); 107 tevent_default_backend = talloc_strdup(NULL, backend); 109 108 } 110 109 … … 115 114 { 116 115 tevent_select_init(); 116 tevent_poll_init(); 117 117 tevent_standard_init(); 118 118 #ifdef HAVE_EPOLL … … 263 263 add a fd based event 264 264 return NULL on failure (memory allocation error) 265 266 if flags contains TEVENT_FD_AUTOCLOSE then the fd will be closed when267 the returned fd_event context is freed268 265 */ 269 266 struct tevent_fd *_tevent_add_fd(struct tevent_context *ev, … … 617 614 return ev->ops->loop_wait(ev, location); 618 615 } 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 */ 625 int 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.