quakeforge/libs/util
Bill Currie 097d44e270 [util] Handle double shutdown
If Sys_Shutdown gets called twice, particularly if a shutdown callback
hangs and the program is killed with INT or QUIT, shutdown_list would be
in an invalid state. Thus, get the required data (function pointer and
data pointer) from the list element, then unlink the element before
calling the function. This ensures that a reinvocation of Sys_Shutdown
continues from the next callback or ends cleanly. Fixes a segfault when
killing testsound while using the oss output (it hangs on shutdown).
2021-06-21 16:45:46 +09:00
..
test [util] Fix incorrect type in test-mat3 2021-06-13 15:00:57 +09:00
bsearch.c [util] Add fuzzy and reentrant bsearch 2021-06-01 18:53:53 +09:00
bspfile.c Fixup extended bsp when loading the file. 2012-12-30 13:29:24 +09:00
buildnum.c Nuke the rcsid stuff. 2012-04-22 10:56:32 +09:00
cbuf.c Massive whitespace cleanup. 2012-05-22 08:23:22 +09:00
cexpr-lex.l [util] Rename qfplist.[ch] 2021-03-21 16:13:03 +09:00
cexpr-parse.y [util] Rename qfplist.[ch] 2021-03-21 16:13:03 +09:00
cexpr-type.c [util] Rename qfplist.[ch] 2021-03-21 16:13:03 +09:00
cexpr-vars.c [util] Catch some more cexpr errors 2021-02-09 19:29:48 +09:00
checksum.c Massive whitespace cleanup. 2012-05-22 08:23:22 +09:00
cmd.c [nq,qw] Stop wring to config.cfg 2021-04-12 22:09:09 +09:00
cmem.c [util] Make cmem consistent on 32 and 64 bit systems 2021-06-01 18:53:52 +09:00
crc.c Nuke the rcsid stuff. 2012-04-22 10:56:32 +09:00
cvar.c [util] Make developer flag names easier to manage 2021-03-29 22:38:47 +09:00
dirent.c Massive whitespace cleanup. 2012-05-22 08:23:22 +09:00
dstring.c [build] Autoconfiscate printf format attribute 2021-03-27 19:52:59 +09:00
fendian.c Nuke the rcsid stuff. 2012-04-22 10:56:32 +09:00
fnmatch.c Nuke the rcsid stuff. 2012-04-22 10:56:32 +09:00
getopt.c Massive whitespace cleanup. 2012-05-22 08:23:22 +09:00
getopt1.c Massive whitespace cleanup. 2012-05-22 08:23:22 +09:00
hash.c [util] Make hash-tables semi-thread-safe 2020-03-25 15:43:16 +09:00
idparse.c Fix incorrect parsing of comments. 2013-01-16 10:31:02 +09:00
info.c [util] Make hash-tables semi-thread-safe 2020-03-25 15:43:16 +09:00
link.c Nuke the rcsid stuff. 2012-04-22 10:56:32 +09:00
llist.c Nuke the rcsid stuff. 2012-04-22 10:56:32 +09:00
Makemodule.am [ui] Create library for UI support code 2021-06-12 22:50:51 +09:00
math.S export BoxOnPlaneSide properly in windows so it doesn't cause a segfault 2004-01-22 02:26:08 +00:00
mathlib.c [util] Get tests working with sse2 2021-06-01 18:53:53 +09:00
mdfour.c Clean up after removal of uint32.h 2020-02-29 16:11:07 +09:00
mersenne.c Implement the Mersenne Twister PRNG. 2013-01-21 20:05:16 +09:00
msg.c [util] Add message short and long poke functions 2021-04-04 15:56:14 +09:00
pakfile.c [util] Make hash-tables semi-thread-safe 2020-03-25 15:43:16 +09:00
plist.c Fix a pile of leaks and uninit errors 2021-03-21 19:56:17 +09:00
plugin.c [util] Make developer flag names easier to manage 2021-03-29 22:38:47 +09:00
qargs.c [nq,qw] Stop wring to config.cfg 2021-04-12 22:09:09 +09:00
qendian.c Fix a pile of double semicolons 2021-01-09 20:42:23 +09:00
qsort_r.c [util] Add strndup and reentrant quicksort 2021-03-27 20:03:39 +09:00
quakefs.c [util] Make developer flag names easier to manage 2021-03-29 22:38:47 +09:00
quakeio.c Remove a redundant va_start/va_end pair. 2016-01-03 18:38:41 +09:00
riff.c Fix a bunch of dead increments. 2018-09-09 11:12:04 +09:00
script.c Make script much friendlier to use 2020-02-26 09:39:03 +09:00
segtext.c [util] Make hash-tables semi-thread-safe 2020-03-25 15:43:16 +09:00
set.c [util] Add re-entrant set_as_string 2021-03-28 20:25:57 +09:00
simd.c [util] Get tests working with sse2 2021-06-01 18:53:53 +09:00
sizebuf.c [util] Make sizebuf and msg sizes unisgned 2021-04-04 15:53:53 +09:00
string.c [util] Add strndup and reentrant quicksort 2021-03-27 20:03:39 +09:00
sys.c [util] Handle double shutdown 2021-06-21 16:45:46 +09:00
sys_ia32.S needed EXPORT in both ends if the #if/#else/#endif 2004-02-18 03:19:57 +00:00
va.c [util] Make va return const char * 2021-03-29 17:24:30 +09:00
ver_check.c Nuke the rcsid stuff. 2012-04-22 10:56:32 +09:00
wad.c [util] Make developer flag names easier to manage 2021-03-29 22:38:47 +09:00
wadfile.c [util] Make hash-tables semi-thread-safe 2020-03-25 15:43:16 +09:00
zone.c [util] Make developer flag names easier to manage 2021-03-29 22:38:47 +09:00