]> git.ipfire.org Git - thirdparty/iptables.git/commit
libxtables: Use posix_spawn() instead of vfork()
authorPhil Sutter <phil@nwl.cc>
Wed, 19 Sep 2018 13:17:05 +0000 (15:17 +0200)
committerFlorian Westphal <fw@strlen.de>
Mon, 24 Sep 2018 09:49:58 +0000 (11:49 +0200)
commitd95c1e8b65c4ec66b8fcd2f7ede257853a888750
treecc4b6b527c3b413931ab02b68c94517f1428d06b
parent7e50ebabbf9c3a5eeb9511d9f32c6104b56da5cd
libxtables: Use posix_spawn() instead of vfork()

According to covscan, vfork() may lead to a deadlock in the parent
process. It suggests to use posix_spawn() instead. Since the latter
combines vfork() and exec() calls, use it for xtables_insmod().

Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Florian Westphal <fw@strlen.de>
libxtables/xtables.c