On Thu May 22 20:00:31 2025 +0000, Alexandre Julliard wrote:
Any reason you are not using `init_handler` for this?
As far as I understand it, libc's sigaction is normally being redirected to __thr_sigaction, which wraps every signal handler, that [wrapper](https://github.com/freebsd/freebsd-src/blob/3c3dd62966123b424657983d9a4d173f...) relies on TLS. Thus it's to late to set fsbase in init_handler. (Also FreeBSD will do leave_handler's job itself, no need to worry about that one.)
This is still a bit obnoxious and we are actually discussing getting of that particular annoyance on the FreeBSD side. Would take some time, though.