mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-27 04:38:02 +00:00

The old code assumed that various pthreads calls would set errno, and therefore we could use perror() to print information about them. That assumption was incorrect: pthreads calls return the error number directly and do not set errno at all. The solution: asign the return value to errno and then call perror();