Add postfork support for nss

We need this in our unit tests, since otherwise NSS will notice
we've forked and start cussing us out.

I suspect we'll need a different hack for daemonizing, but this
should be enough for tinytest to work.
This commit is contained in:
Nick Mathewson
2018-07-11 15:36:54 -04:00
parent c317e78dd7
commit d811ce2421
6 changed files with 35 additions and 0 deletions
+7
View File
@@ -223,6 +223,13 @@ an_assertion_failed(void)
tinytest_set_test_failed_();
}
void tinytest_postfork(void);
void
tinytest_postfork(void)
{
crypto_postfork();
}
/** Main entry point for unit test code: parse the command line, and run
* some unit tests. */
int