From 822e4896c1072b9f84b17f4f7bcb7c51d1a57723 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 21 Feb 2006 23:33:23 +0000 Subject: use vfork instead of fork so test works on non-mmu --- test/malloc/tst-mallocfork.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/malloc/tst-mallocfork.c b/test/malloc/tst-mallocfork.c index f90ce9488..5bb1d7628 100644 --- a/test/malloc/tst-mallocfork.c +++ b/test/malloc/tst-mallocfork.c @@ -11,7 +11,7 @@ static void sig_handler (int signum) { - pid_t child = fork (); + pid_t child = vfork (); if (child == 0) exit (0); TEMP_FAILURE_RETRY (waitpid (child, NULL, 0)); @@ -34,7 +34,7 @@ do_test (void) } /* Create a child that sends the signal to be caught. */ - pid_t child = fork (); + pid_t child = vfork (); if (child == 0) { if (kill (parent, SIGALRM) == -1) -- cgit v1.2.3