mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-21 12:27:48 +08:00
There is no main thread in RTEMS
The resolv module has a questionable fall back strategy on error.
This commit is contained in:
@@ -66,8 +66,10 @@ __res_state(void)
|
||||
{
|
||||
res_state statp;
|
||||
|
||||
#ifndef __rtems__
|
||||
if (thr_main() != 0)
|
||||
return (&_res);
|
||||
#endif /* __rtems__ */
|
||||
|
||||
if (thr_once(&res_init_once, res_keycreate) != 0 ||
|
||||
!res_thr_keycreated)
|
||||
|
Reference in New Issue
Block a user