libqb/lib
Chrissie Caulfield fde729e137
timer: Move state check to before time check (#479)
A timer in QB_POLL_ENTRY_JOBLIST doesn't necessarily
have a t->timerlist_handle so that deref can segv. Also
the comment assumes the timers are threaded - which as we have
decided is definitely not true. So it's safe to move the check
earlier.

In the tests, I've adjusted the timeouts so that they definitely
happen at different times. On some architectures they can fire
concurrently and in the wrong order.
2023-01-05 14:45:22 +00:00
..
.gitignore Cleanup the .gitignore files 2012-05-09 21:43:58 +10:00
array.c array: More locking fixes (#400) 2020-06-08 14:16:58 +01:00
atomic_int.h Add internal support for the new __atomic gcc builtins 2013-05-13 10:15:55 +10:00
hashtable.c Add the processing which remove notifier at skiplist_destroy function 2013-01-15 01:57:29 +09:00
hdb.c warnings cleanup: Wsign-compare: hdb: uint32_t <-> int32_t 2017-12-20 22:19:17 +01:00
ipc_int.h ipcc: Add an async connect API (#450) 2022-01-05 10:53:09 +00:00
ipc_setup.c ipc: Retry receiving credentials if the the message is short (#476) 2022-11-25 07:38:20 +00:00
ipc_shm.c ipcc: Have a few goes at tidying up after a dead server (#434) 2021-01-25 12:19:10 +00:00
ipc_socket.c lib: Fix some small bugs spotted by newest covscan (#471) 2022-08-17 13:17:33 +01:00
ipcc.c ipcc: Fix errno returned from qb_ipcc_connect 2022-03-03 07:29:07 +00:00
ipcs.c lib: Fix some small bugs spotted by newest covscan (#471) 2022-08-17 13:17:33 +01:00
libqb.pc.in Add Pthreads (and possibly other) flags to the pkg-config file (#332) 2018-12-13 08:25:57 +00:00
log_blackbox.c lib: Fix some small bugs spotted by newest covscan (#471) 2022-08-17 13:17:33 +01:00
log_dcs.c syslog: Add a message-id parameter for messages (#433) 2021-03-01 15:58:50 +00:00
log_file.c Add the option of hi-res (millisecond) timestamps (#329) 2018-11-09 09:56:44 +00:00
log_format.c lib: Fix some minor warnings from newer compilers 2019-12-11 11:14:47 +00:00
log_int.h syslog: Add a message-id parameter for messages (#433) 2021-03-01 15:58:50 +00:00
log_syslog.c syslog: Add a message-id parameter for messages (#433) 2021-03-01 15:58:50 +00:00
log_thread.c log: Fix threading races (#396) 2020-06-01 15:41:26 +01:00
log.c syslog: Add a message-id parameter for messages (#433) 2021-03-01 15:58:50 +00:00
loop_int.h LOOP: make it possible to pass in NULL as the default loop instance 2012-02-10 14:47:49 +11:00
loop_job.c Unify the list processing with qb_list function 2013-01-09 02:04:20 +09:00
loop_poll_epoll.c maint: replace 0xffffffff constants with UNIT32_MAX 2017-12-20 22:17:07 +01:00
loop_poll_int.h POLL: seperate out the poll/epoll and add kqueue 2012-04-04 00:26:20 +10:00
loop_poll_kqueue.c ipc: Remove kqueue EOF log message 2019-06-27 13:19:08 +01:00
loop_poll_poll.c POLL: seperate out the poll/epoll and add kqueue 2012-04-04 00:26:20 +10:00
loop_poll.c poll: Don't log in a signal handler (#447) 2021-11-10 12:35:07 +00:00
loop_timerlist.c timer: Move state check to before time check (#479) 2023-01-05 14:45:22 +00:00
loop.c Low: loop: don't bring runtime down for a trivial API misuse 2017-06-06 14:04:46 +01:00
Makefile.am Bump version for 2.0.5 release 2022-03-21 09:14:52 +00:00
map_int.h PTRIE: refcount the notifier structs 2012-01-25 16:09:32 +11:00
map.c MAP: add a notifier purely to allow the user to free memory. 2011-12-14 00:26:01 +11:00
qblog_script_noop.ld High: bare fix for libqb logging not working with ld.bfd/binutils 2.29+ 2017-12-12 23:23:35 +01:00
qblog_script.la.in High: bare fix for libqb logging not working with ld.bfd/binutils 2.29+ 2017-12-12 23:23:35 +01:00
qblog_script.ld.in High: bare fix for libqb logging not working with ld.bfd/binutils 2.29+ 2017-12-12 23:23:35 +01:00
ringbuffer_helper.c Med: rb: use new qb_rb_close_helper able to resort to file truncating 2016-11-04 19:05:35 +01:00
ringbuffer_int.h Med: rb: use new qb_rb_close_helper able to resort to file truncating 2016-11-04 19:05:35 +01:00
ringbuffer.c blackbox: Sanitize items read from the blackbox header (#438) 2022-03-18 10:04:58 +00:00
rpl_sem.c Fix pthread returns (#444) 2021-08-11 07:55:42 +01:00
rpl_sem.h rpl_sem: make destroy more compliant 2013-02-19 12:40:06 +11:00
skiplist.c skiplist: Fix previous skiplist fix 2018-12-12 16:17:59 +01:00
strchrnul.c Use safer versions of string functions (strcpy -> strlcpy) 2012-02-08 22:00:49 +11:00
strlcat.c Fix strlcpy and strlcat functions 2012-12-19 10:42:08 +11:00
strlcpy.c strlcpy: Check for maxlen underflow (#432) 2021-01-13 14:12:02 +00:00
trie.c trie: Don't assume that chars are unsigned < 126 (#386) 2020-03-09 08:14:39 +00:00
unix.c unix: Don't fail on FreeBSD running ZFS (#461) 2022-03-17 07:47:39 +00:00
util_int.h Fix typos: in{ -> s}tance, d{e -> i}stinguished 2017-06-06 14:04:46 +01:00
util.c util: reimplement time functions as a series of fallbacks 2022-02-14 12:25:19 +00:00