From: Zoran V. <zv...@ar...> - 2013-07-25 08:10:45
|
On 25.07.2013, at 09:52, Harald Oehlmann wrote: > Wouldn't it be wise to unlock all locks in the forked process just in case ? Is there any means of identifying all the mutexes used for the whole process (the Tcl core including all loaded extensions) during runtime? IIRC we had a conversation about this some months/years ago... The result was that there is no real cure to this besides the programmer *knowing* what to unlock in the child. This can get very tricky down the road... Basically... you really need to know upfront if it is safe to fork or not. And the decision is not that straightforward at all. Cheers Zoran |