mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-24 11:12:21 +00:00
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). |
||
---|---|---|
.. | ||
audio | ||
client | ||
console | ||
entity | ||
gamecode | ||
gib | ||
image | ||
models | ||
net | ||
qw | ||
ruamoko | ||
ui | ||
util | ||
video | ||
Makemodule.am |