From 94aa2ea67d7b8a669e8541f094661a1dc89722a3 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Sun, 11 Oct 2009 03:56:18 -0400 Subject: Support for nommu arches Linux systems that lack a MMU cannot call fork(). Fortunately, the only place in iptables that uses fork() follows it by an exec(), so we can easily convert the code to vfork(). References: http://bugzilla.netfilter.org/show_bug.cgi?id=614 Signed-off-by: Jan Engelhardt --- xtables.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xtables.c b/xtables.c index 41e0b871..45201248 100644 --- a/xtables.c +++ b/xtables.c @@ -331,7 +331,7 @@ int xtables_insmod(const char *modname, const char *modprobe, bool quiet) */ fflush(stdout); - switch (fork()) { + switch (vfork()) { case 0: argv[0] = (char *)modprobe; argv[1] = (char *)modname; -- cgit v1.2.3