diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2024-03-09 14:10:09 +0100 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2024-03-09 14:10:09 +0100 |
| commit | 33846405d8e0af86bb5cfb9dab4ea5026fadb614 (patch) | |
| tree | 7fb9153caa2103fd0ec096472c542bcf4a4c6aea /src/wrapped/wrappedlibc.c | |
| parent | 378eb79ad3ec58b4c19b3b38845cdb8a5db8dc5d (diff) | |
| download | box64-33846405d8e0af86bb5cfb9dab4ea5026fadb614.tar.gz box64-33846405d8e0af86bb5cfb9dab4ea5026fadb614.zip | |
Improved unload of libs (help wine when dlopen / dlclose is supposed to unload the lib so it can be dlopen again)
Diffstat (limited to 'src/wrapped/wrappedlibc.c')
| -rw-r--r-- | src/wrapped/wrappedlibc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/wrapped/wrappedlibc.c b/src/wrapped/wrappedlibc.c index 0100385c..6ff9bab7 100644 --- a/src/wrapped/wrappedlibc.c +++ b/src/wrapped/wrappedlibc.c @@ -3440,7 +3440,8 @@ static void* timed_exit_thread(void* a) { // this is a workaround for some NVidia drivers on ARM64 that may freeze at exit // waiting on a pthread_cond_destroy - usleep(500000); // wait 1/2 a second + usleep(5000000); // wait 5 seconds + printf_log(LOG_DEBUG, "Too late, forced exit...\n"); _exit(box64_exit_code); // force exit, something is wrong } |