libmagic usage is not thread safe
a single libmagic "context" is used but it's not thread-safe, alternatives:
- use at least one context per thread
-
lock to access the single context(not really good) - use puremagic
a single libmagic "context" is used but it's not thread-safe, alternatives: