summaryrefslogtreecommitdiff
path: root/p11-kit/tests/test-init.c
diff options
context:
space:
mode:
Diffstat (limited to 'p11-kit/tests/test-init.c')
-rw-r--r--p11-kit/tests/test-init.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/p11-kit/tests/test-init.c b/p11-kit/tests/test-init.c
index ebc0666..c4fcecb 100644
--- a/p11-kit/tests/test-init.c
+++ b/p11-kit/tests/test-init.c
@@ -73,6 +73,7 @@ mock_C_Initialize__with_fork (CK_VOID_PTR init_args)
/* Fork during the initialization */
child = fork ();
if (child == 0) {
+ close (1);
nanosleep (&ts, NULL);
exit (66);
}