On Thu, Mar 16, 2017 at 12:54:20PM +0900, Lorenzo Colitti wrote: > This slightly simplifies configure.ac and results in more > correct dependencies. > > Tested by running ./configure with --with-xt-lock-name and > without, and using strace to verify that the right lock is used. > > $ make distclean-recursive && ./autogen.sh && > ./configure --disable-nftables --prefix /tmp/iptables && > make -j64 && > make install && > sudo strace -e open,flock /tmp/iptables/sbin/iptables -L foo > ... > open("/run/xtables.lock", O_RDONLY|O_CREAT, 0600) = 3 > flock(3, LOCK_EX|LOCK_NB) = 0 > > $ make distclean-recursive && ./autogen.sh && \ > ./configure --disable-nftables --prefix /tmp/iptables \ > --with-xt-lock-name=/tmp/iptables/run/xtables.lock && > make -j64 && > make install && > sudo strace -e open,flock /tmp/iptables/sbin/iptables -L foo > ... > open("/tmp/iptables/run/xtables.lock", O_RDONLY|O_CREAT, 0600) = 3 > flock(3, LOCK_EX|LOCK_NB) = 0 Applied, thanks Lorenzo. -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html