search for: threan

Displaying 1 result from an estimated 1 matches for "threan".

Did you mean: thread
2012 Sep 06
1
nut-scanner pthread issue
...nd_ip,timeout,&snmp_sec); #endif /* HAVE_PTHREAD */ } } ============================== if start_ip==NULL, pthread is not created, but later... if( allow_snmp && nutscan_avail_snmp && thread[TYPE_SNMP]) { pthread_join(thread[TYPE_SNMP],NULL); } it calls pthread_join with threan[TYPE_SNMP]==0, pthread_join(0, ?) behaviour is undefined, on my system undefined=crashes. I used attached patch to get rid of it. Cheers, Michal /me is back from vacation and going to another one tmrw, so I won't be reachable for some time (again) -------------- next part -------------- A n...