summaryrefslogtreecommitdiffstats
path: root/lib/tevent
Commit message (Collapse)AuthorAgeFilesLines
...
* tevent: Plumb in the panic fallback code into the epoll_panic() runtime call.Jeremy Allison2013-02-141-3/+20
| | | | | Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* tevent: Add an internal function tevent_epoll_set_panic_fallback().Jeremy Allison2013-02-142-0/+27
| | | | | | | | Can be set externally, allows us to fallback if epoll fails at runtime. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* tevent: pass 'bool replay' to epoll_panic()Stefan Metzmacher2013-02-141-5/+6
| | | | | | | | | A fallback panic handler will need to know if there was an error while waiting for events (replay=true) or if the error happened on modify (replay=false). Signed-off-by: Stefan Metzmacher <metze@samba.org>
* tevent: Ensure we return after every call to epoll_panic().Jeremy Allison2013-02-141-0/+2
| | | | | | | | Currently we can't return from this, but the new fallback code will change this. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* tevent: Preparing to fix "standard" backend fallback. Initialize standard ↵Jeremy Allison2013-02-141-1/+1
| | | | | | | after epoll. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* tevent_poll: add poll_event_loop_wait()Stefan Metzmacher2013-02-031-2/+31
| | | | | | | | | | | | | We can't use tevent_common_loop_wait() because new fd events will be added to the poll_ev->fresh list instead of ev->fd_events. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Sun Feb 3 06:40:09 CET 2013 on sn-devel-104
* tevent_poll: fix the usage of tevent_re_initialise()Stefan Metzmacher2013-02-021-0/+8
| | | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* tevent_poll: call tevent_common_fd_destructor() from poll_fresh_fde_destructor()Stefan Metzmacher2013-02-021-2/+3
| | | | | | | | We need to trigger the fde->close_fn(). Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* tevent_poll: Avoid a crash in poll_event_set_fd_flagsVolker Lendecke2013-02-021-2/+8
| | | | | | | | The event context might have been freed before the fde Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* tevent_poll: Avoid a crash in poll_fresh_fde_destructorVolker Lendecke2013-02-021-2/+9
| | | | | | | | The event context might have been freed before the fde Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* tevent_poll: NULL out fde->event_ctx for "fresh" poll fdesVolker Lendecke2013-02-021-0/+8
| | | | | | | | | This is done in tevent_common_context_destructor for the non-fresh fdes already Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* tevent_poll: Use the poll_event_context_destructor alwaysVolker Lendecke2013-02-021-5/+12
| | | | | | | | | This is in preparation for the next patch to NULL out the event_ctx pointers in the poll_ev->fresh list Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* tevent_poll: Re-order routinesVolker Lendecke2013-02-021-16/+16
| | | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* tevent_poll: Fix a crash in the poll backendVolker Lendecke2013-02-021-4/+15
| | | | | | | | | | If tevent_add_fd is immediately followed by tevent_fd_set_flags, the poll backend crashes. This was introduced when the poll backend was prepared for the multi-threaded python extension. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* tevent: Fix a comment typoVolker Lendecke2013-01-311-1/+1
| | | | | | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Ira Cooper <ira@samba.org> Reviewed-by: Richard Sharpe <realrichardsharpe@gmail.com> Autobuild-User(master): Richard Sharpe <sharpe@samba.org> Autobuild-Date(master): Thu Jan 31 17:52:39 CET 2013 on sn-devel-104
* tevent: Fix a commentVolker Lendecke2013-01-181-1/+1
| | | | | | | | | | liboop.org is now in a language I don't understand. But it does definitely not contain a library. Reviewed by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Fri Jan 18 00:05:37 CET 2013 on sn-devel-104
* tevent: Fix bug 9550 - sigprocmask does not work on FreeBSD to stop further ↵Jeremy Allison2013-01-151-0/+29
| | | | | | | | | | | | signals in a signal handler Mask off signals the correct way from the signal handler. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Tue Jan 15 12:13:43 CET 2013 on sn-devel-104
* tevent: change version to 0.9.17 after adding the "poll_mt" backendStefan Metzmacher2012-08-162-1/+83
| | | | metze
* tevent: Add threaded poll_mt testcaseVolker Lendecke2012-08-161-0/+145
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* lib/tevent: Add a thread-safe tevent backendVolker Lendecke2012-08-163-3/+160
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* tevent_poll: Decouple poll_ev->fds handling from adding/removing fdsVolker Lendecke2012-08-161-72/+135
| | | | | | Step 1 in a python backend for multiple threads Signed-off-by: Stefan Metzmacher <metze@samba.org>
* doc: Remove build/ from doxygen config or it will not work in brew.Andreas Schneider2012-08-041-4/+1
| | | | | Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Sat Aug 4 16:31:22 CEST 2012 on sn-devel-104
* tevent: Refer to the correct header in testsuite.cVolker Lendecke2012-07-311-1/+1
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* tevent: change version to 0.9.16Stefan Metzmacher2012-06-082-1/+83
| | | | | | | | | This adds tevent_*_trace_*() and tevent_context_init_ops() metze Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Fri Jun 8 20:47:41 CEST 2012 on sn-devel-104
* tevent: expose tevent_context_init_opsStefan Metzmacher2012-06-082-3/+19
| | | | | | | | This can be used to implement wrapper backends, while passing a private pointer to the backens init function via ev->additional_data. metze
* lib/tevent: Add trace point callbackMartin Schwenke2012-06-088-0/+82
| | | | | | | | | | | | Set/get a single callback function to be invoked at various trace points. Define "before wait" and "after wait" trace points - more trace points can be added later if required. CTDB wants this to log long waits and events. Pair-programmed-with: Amitay Isaacs <amitay@gmail.com> Signed-off-by: Martin Schwenke <martin@meltin.net> Signed-off-by: Stefan Metzmacher <metze@samba.org>
* lib/tevent: In poll_event_context, add a pointer back to the tevent_contextMartin Schwenke2012-06-081-0/+4
| | | | | | | This makes it consistent with the other backends. Signed-off-by: Martin Schwenke <martin@meltin.net> Signed-off-by: Stefan Metzmacher <metze@samba.org>
* build: Remove unused release scripts for teventAndrew Bartlett2012-05-305-426/+0
| | | | | | | | These now use waf dist, and the script/librelease.sh script as a wrapper. The mksyms.sh call in the source3/Makefile uses the copy in source3/script Andrew Bartlett
* lib/tevent/testsuite: no longer use 'compat' symbolsStefan Metzmacher2012-05-141-12/+12
| | | | metze
* tevent: fix indentation in the wscriptMichael Adam2012-05-131-1/+1
| | | | (accidentially commited in 5e8dee8d96a7522cdcde57dbbf93fbe9c614992e)
* tevent: Fix a typoVolker Lendecke2012-04-091-1/+1
|
* tevent: Install tevent.py into PYTHONARCHDIR rather than PYTHONDIR for ↵Jelmer Vernooij2012-03-101-1/+1
| | | | consistency with other Samba scripts.
* tevent_signal: Fix a valgrind errorVolker Lendecke2012-02-151-1/+2
| | | | | | | | | | | This fixes an uninitialized read introduced by my fix for the tevent_signal destructors. From looking at the code you might believe that this kicks in only when talloc failed. But with -O3 I do see it in normal operations. Sorry for that. Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Wed Feb 15 17:58:37 CET 2012 on sn-devel-104
* tevent: change the version to 0.9.15Stefan Metzmacher2012-02-092-1/+79
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Thu Feb 9 12:24:19 CET 2012 on sn-devel-104
* tevent: Fix deleting signal events from within themselvesVolker Lendecke2012-02-091-2/+33
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* tevent: Fix python documentation stringsAmitay Isaacs2012-01-311-2/+2
| | | | | Autobuild-User: Amitay Isaacs <amitay@samba.org> Autobuild-Date: Tue Jan 31 16:59:29 CET 2012 on sn-devel-104
* tevent: tevent_schedule_immediate never failsVolker Lendecke2011-12-091-1/+0
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Fri Dec 9 16:47:23 CET 2011 on sn-devel-104
* Add version attribute for pytevent.Jelmer Vernooij2011-12-073-1/+5
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Wed Dec 7 15:07:49 CET 2011 on sn-devel-104
* tevent: Install python tevent modules.Jelmer Vernooij2011-12-061-0/+6
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Tue Dec 6 23:13:37 CET 2011 on sn-devel-104
* Add stub python module for tevent.Jelmer Vernooij2011-12-061-0/+28
|
* tevent: Fix typo in build script.Jelmer Vernooij2011-12-031-1/+1
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sat Dec 3 02:15:40 CET 2011 on sn-devel-104
* waf: Factor checking for undefined symbol flags out into separate method.Jelmer Vernooij2011-11-131-0/+2
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sun Nov 13 19:38:38 CET 2011 on sn-devel-104
* tevent: Only check for pkg-config file when checking for system tevent.Jelmer Vernooij2011-11-131-1/+1
|
* tevent: Only build pytevent if the system doesn't provide it.Jelmer Vernooij2011-11-131-5/+8
|
* tevent: remove unnecessary enablement.Jelmer Vernooij2011-11-131-1/+0
|
* Fix -Wunused-but-set-variable compiler warnings in tevent_signal.cMartin Schwenke2011-11-101-4/+2
| | | | | | | | | | | | | | | | | | | | The results of some read(2) and write(2) calls are assigned into a variable that is never used. Presumably this used to avoid compiler warnings or similar. However, from (approximately) GCC 4.6 this produces some warnings: [ 609/3910] Compiling lib/tevent/tevent_signal.c ../lib/tevent/tevent_signal.c: In function ‘tevent_common_signal_handler’: ../lib/tevent/tevent_signal.c:85:10: warning: variable ‘res’ set but not used [-Wunused-but-set-variable] ../lib/tevent/tevent_signal.c: In function ‘signal_pipe_handler’: ../lib/tevent/tevent_signal.c:183:10: warning: variable ‘res’ set but not used [-Wunused-but-set-variable] The simplest thing to do is remove the variables and cast the function return to void. There is already a comment above each call. Signed-off-by: Martin Schwenke <martin@meltin.net> Signed-off-by: Stefan Metzmacher <metze@samba.org>
* wafsamba: Only install .pc files if libraries are public.Jelmer Vernooij2011-08-211-1/+1
|
* tevent: don't force the nesting flag to false in the destructorAndrew Tridgell2011-08-121-3/+7
| | | | | | | | | | | the tevent destructor is called in tevent_re_initialise(), to reset the event context back to its original state for creating child processes. We need the nesting flag to stay the same Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Fri Aug 12 05:18:25 CEST 2011 on sn-devel-104
* tevent: fix documentation for tevent_context_init_byname()Sumit Bose2011-08-111-2/+2
| | | | | | | Signed-off-by: Simo Sorce <idra@samba.org> Autobuild-User: Simo Sorce <idra@samba.org> Autobuild-Date: Thu Aug 11 21:56:37 CEST 2011 on sn-devel-104
* tevent: Set FD_CLOEXEC on epoll handleSumit Bose2011-08-114-2/+52
| | | | | | | | If an application using libtevent starts a new process the epoll file descriptor is leaked to the new process if the event context is not freed explicitly. By setting FD_CLOEXEC this is not needed anymore. Signed-off-by: Simo Sorce <idra@samba.org>