summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-02-21 23:33:23 +0000
committerMike Frysinger <vapier@gentoo.org>2006-02-21 23:33:23 +0000
commit822e4896c1072b9f84b17f4f7bcb7c51d1a57723 (patch)
tree5bec070264825b132abffa04c2e5989be7f779a9 /test
parent155d5311e32f007b1428858ddca2332b93efc2ef (diff)
use vfork instead of fork so test works on non-mmu
Diffstat (limited to 'test')
-rw-r--r--test/malloc/tst-mallocfork.c4
1 files 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)