Use %gs as TLS register when dlopen() is linked

Fixes #938
This commit is contained in:
Justine Tunney 2023-11-08 01:11:17 -08:00
parent e961385e55
commit d71da7fc72
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
13 changed files with 71 additions and 40 deletions

View file

@ -72,7 +72,7 @@ static textwindows int __proc_wait(int pid, int *wstatus, int options,
for (;;) {
// check for signals and cancelation
int sig, handler_was_called;
int rc, sig, handler_was_called;
if (_check_cancel() == -1) {
return -1;
}
@ -89,7 +89,7 @@ static textwindows int __proc_wait(int pid, int *wstatus, int options,
// check for zombie to harvest
__proc_lock();
CheckForZombies:
int rc = __proc_check(pid, wstatus, rusage);
rc = __proc_check(pid, wstatus, rusage);
if (rc || (options & WNOHANG)) {
__proc_unlock();
return rc;