Overview
| Artifact ID: | 3be4e55e9839ad4fa08d15fdc7a8c6758d95e057 |
|---|---|
| Ticket: | 923072ffffffffffffffffffffffffffffffffff
atfork patch |
| User & Date: | vasiljevic on 2004-12-18 01:50:20 |
Changes
- icomment:
Logged In: YES user_id=95086 Some more thoughts... This patch actually attempts to solve 2 problems at a time: 1. Assure all Tcl mutexes are in the sane state after the fork, so that the Tcl library in the child process is in the sane state as well. 2. Reinitialize (actually, re-start) the notifier thread in the child, since it is not replicated by the fork call but is/(will be) needed by the Tcl lib in the child. Only the step 2. is the actual fix of the initial problem as described in the references to bug-reports above. This ain't that difficult to solve by pthread_atfork mechanics and should not introduce any unwanted side effects. At least I can't think of any at this point. The step 1. attempts to solve the more difficult problem of the state of internal mutexes used by the Tcl library after the fork. This is far more complex than it looks like on the first glance (deadlock embrace issues)...
- login: "vasiljevic"
- mimetype: "text/plain"
- subsystem changed to: "49. Threading"
- username: "vasiljevic"