summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Engelhardt <vapier@gentoo.org>2009-10-11 03:56:18 -0400
committerHarald Welte <laforge@gnumonks.org>2009-10-25 10:57:56 +0100
commit94aa2ea67d7b8a669e8541f094661a1dc89722a3 (patch)
tree04cb66937220b089f9af4d4f3906d98d539f8747
parent7b041d47428cdbc3da522d8194c2568ef5db0e5d (diff)
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 <jengelh@medozas.de>
-rw-r--r--xtables.c2
1 files changed, 1 insertions, 1 deletions
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;