137-inet_fix_threaded_res_init.patch 212 B

12345678910
  1. --- a/libc/inet/resolv.c
  2. +++ b/libc/inet/resolv.c
  3. @@ -3581,6 +3581,7 @@ res_init(void)
  4. if (!_res.id)
  5. _res.id = res_randomid();
  6. + __res_sync = NULL;
  7. __res_vinit(&_res, 1);
  8. __res_sync = res_sync_func;