svn commit: trunk/uClibc/test/malloc
vapier at uclibc.org
vapier at uclibc.org
Tue Feb 21 23:33:25 UTC 2006
Author: vapier
Date: 2006-02-21 15:33:23 -0800 (Tue, 21 Feb 2006)
New Revision: 14167
Log:
use vfork instead of fork so test works on non-mmu
Modified:
trunk/uClibc/test/malloc/tst-mallocfork.c
Changeset:
Modified: trunk/uClibc/test/malloc/tst-mallocfork.c
===================================================================
--- trunk/uClibc/test/malloc/tst-mallocfork.c 2006-02-21 19:20:54 UTC (rev 14166)
+++ trunk/uClibc/test/malloc/tst-mallocfork.c 2006-02-21 23:33:23 UTC (rev 14167)
@@ -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 @@
}
/* 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)
More information about the uClibc-cvs
mailing list