westonpace commented on issue #12329: URL: https://github.com/apache/arrow/issues/12329#issuecomment-1030314785
I see now. You have a lock that is only taken if the pid doesn't match up. That should mean it's highly likely to be clean after a fork. It's not guaranteed though. You open yourself up to a potential deadlock if there is a fork while you are in the middle of resetting the state. In that case the child would come online with `pid_ == 0` and it would be impossible to reset the thread pool. However, that seems like too unlikely a scenario to worry about (e.g. you'd have to be forking on a forked child almost immediately after the initial fork call). Do you want to open a JIRA and create a PR? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
