diff options
author | Jan Engelhardt <vapier@gentoo.org> | 2009-10-11 03:56:18 -0400 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2009-10-25 10:57:56 +0100 |
commit | 94aa2ea67d7b8a669e8541f094661a1dc89722a3 (patch) | |
tree | 04cb66937220b089f9af4d4f3906d98d539f8747 | |
parent | 7b041d47428cdbc3da522d8194c2568ef5db0e5d (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |