Well; the child thread seems to work properly now.