catalinii / minisatip

minisatip is an SATIP server for linux using local DVB-S2, DVB-C, DVB-T or ATSC cards
https://minisatip.org
328 stars 81 forks source link

Save the last_log to be accessible in case of core dump #1069

Closed catalinii closed 1 year ago

catalinii commented 1 year ago

In case of core dump the TLS (Thread Local Storage) is not accessible. If the stack is corrupted is very tricky to figure out where minisatip died. This PR saves all the LOGs in a thread specific variable (last_log) which allows figuring out around where minisatip crashed.