mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user