sipa / bitcoin-seeder

397 stars 970 forks source link

why this listenSocket code in a thread function #72

Closed MasterKungfu closed 5 years ago

MasterKungfu commented 5 years ago

pthread_create(&threadDns, NULL, ThreadDNS, dnsThread[i]) may run many times?

https://github.com/sipa/bitcoin-seeder/blob/d54f39a1eeb7ddb0638396755d3a76abbd4c41ef/dns.c#L390-L410

MasterKungfu commented 5 years ago

ok, these is a sleep in createthread loop. : )