Subj : Re: pthreads and fork To : comp.programming.threads From : Alexander Terekhov Date : Sat Feb 19 2005 07:44 pm Marcin 'Qrczak' Kowalczyk wrote: [...] > What happens with detached threads? Same thing as with joinable ones. They are evaporated and cleanup just can't be done as long as the standard allows asynchronous fork()ing as it does. > There are only two choices here: > either their resources are properly deallocated (excluding cleanup > handlers and TLS descructors), or there is a memory leak. The cleanest solution is to have synchronous forkall() stuff with subsequent ordinary termination/cleanup of threads you don't need any more. http://www.google.de/groups?threadm=3BC1DF97.4993AB97%40web.de Give it try, file a DR. ;-) regards, alexander. .