Commit 919d8e39 authored by Orvid King's avatar Orvid King Committed by facebook-github-bot-9

Don't warn if pthread_atfork isn't avaliable on MSVC

Summary: Because we don't even have `fork` to begin with under MSVC.
Closes #278

Reviewed By: @yfeldblum

Differential Revision: D2306518

Pulled By: @sgolemon
parent 614ca624
...@@ -212,7 +212,7 @@ struct StaticMeta { ...@@ -212,7 +212,7 @@ struct StaticMeta {
/*parent*/ &StaticMeta::onForkParent, /*parent*/ &StaticMeta::onForkParent,
/*child*/ &StaticMeta::onForkChild); /*child*/ &StaticMeta::onForkChild);
checkPosixError(ret, "pthread_atfork failed"); checkPosixError(ret, "pthread_atfork failed");
#elif !__ANDROID__ #elif !__ANDROID__ && !defined(_MSC_VER)
// pthread_atfork is not part of the Android NDK at least as of n9d. If // pthread_atfork is not part of the Android NDK at least as of n9d. If
// something is trying to call native fork() directly at all with Android's // something is trying to call native fork() directly at all with Android's
// process management model, this is probably the least of the problems. // process management model, this is probably the least of the problems.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment