From: Jan Engelhardt Date: Sun, 11 Oct 2009 07:56:18 +0000 (-0400) Subject: Support for nommu arches X-Git-Tag: v1.4.6~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=94aa2ea67d7b8a669e8541f094661a1dc89722a3;p=thirdparty%2Fiptables.git 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 --- 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;