There is no main thread in RTEMS

The resolv module has a questionable fall back strategy on error.
This commit is contained in:
Sebastian Huber
2013-09-20 16:08:34 +02:00
parent 937461c950
commit 83cb10f952
6 changed files with 2 additions and 32 deletions

View File

@@ -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)