mirror_iproute2/ip
Nicolas Dichtel 3c61c01a66 ipnetns: fix ip batch mode when using 'netns exec'
Since commit a05f6511f5, ip batch mode is broken when using 'netns exec' cmd.

When WIFEXITED() returns true, it means that the child exited normally, hence
we must not call exit() but just returns the status. If we call exit, the next
commands in the file file are not executed.
If WIFEXITED() returns false, we can call exit() because it means that the
child failed.

This patch partially reverts commit a05f6511f5.

Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
2013-09-03 08:20:16 -07:00
..
.gitignore Another .gitignore file. 2006-08-08 12:11:23 -07:00
ifcfg Remove trailing whitespace 2006-12-05 10:10:22 -08:00
ip6tunnel.c iproute2: improved error messages 2013-02-11 09:22:22 -08:00
ip_common.h ip: ipv6: add tokenized interface identifier support 2013-05-03 13:17:21 -07:00
ip.c Make tc and ip batch mode consistent 2013-07-16 10:04:05 -07:00
ipaddress.c ip link: fix display of interface groups 2013-08-04 11:50:38 -07:00
ipaddrlabel.c ip: remove unnecessary ll_init_map 2013-03-28 15:17:47 -07:00
ipl2tp.c iproute2: add l2spec_type param to l2tp add session 2013-03-27 13:20:58 -07:00
iplink_can.c iproute2: improved error messages 2013-02-11 09:22:22 -08:00
iplink_ipoib.c iproute2: improved error messages 2013-02-11 09:22:22 -08:00
iplink_macvlan.c macvlan: fix typo in macvlan_print_opt() 2013-08-31 10:30:11 -07:00
iplink_macvtap.c iproute2: improved error messages 2013-02-11 09:22:22 -08:00
iplink_vlan.c ip: iplink_vlan: add 802.1ad support 2013-06-21 08:59:24 -07:00
iplink_vxlan.c vxlan: Allow setting destination to unicast address. 2013-07-26 14:25:42 -07:00
iplink.c Add VF link state control 2013-06-19 18:14:39 -07:00
ipmaddr.c ipmaddr: add whitespace around = 2013-03-14 13:44:25 -07:00
ipmonitor.c add ability to filter neighbour discovery by protocol 2013-08-29 12:18:52 -07:00
ipmroute.c ip: use rtnelink to manage mroute 2012-12-14 10:08:17 -08:00
ipneigh.c ip: make local functions static 2013-02-12 11:38:35 -08:00
ipnetconf.c ipnetconf: by default dump all entries 2013-05-17 08:38:36 -07:00
ipnetns.c ipnetns: fix ip batch mode when using 'netns exec' 2013-09-03 08:20:16 -07:00
ipntable.c Fix spelling errors 2013-08-04 15:00:56 -07:00
ipprefix.c ip: make local functions static 2013-02-12 11:38:35 -08:00
iproute.c iproute2: iproute.c: fix usage() spacing problems 2013-08-31 10:30:01 -07:00
iprule.c Convert to use rta_getattr_ functions 2012-04-10 08:47:55 -07:00
iptoken.c ip: ipv6: add tokenized interface identifier support 2013-05-03 13:17:21 -07:00
iptunnel.c iproute2: spelling: noptmudisc -> nopmtudisc 2013-08-31 10:30:03 -07:00
iptuntap.c iptuntap: allow creation of multi-queue tun/tap device 2013-05-24 08:12:52 -07:00
ipxfrm.c ip/xfrm: Fix potential SIGSEGV when printing extra flags 2013-08-31 10:33:21 -07:00
link_gre.c iproute2: improved error messages 2013-02-11 09:22:22 -08:00
link_ip6tnl.c ip: add missing help about mode argument 2013-05-03 12:29:22 -07:00
link_iptnl.c iproute2: spelling: noptmudisc -> nopmtudisc 2013-08-31 10:30:03 -07:00
link_veth.c cleanup help message 2013-08-04 15:00:42 -07:00
link_vti.c iproute2: improved error messages 2013-02-11 09:22:22 -08:00
Makefile ip: ipv6: add tokenized interface identifier support 2013-05-03 13:17:21 -07:00
routef ip/routef lifesaver 2007-07-10 18:29:20 -07:00
routel (Logical change 1.3) 2004-04-15 20:56:59 +00:00
rtm_map.c (Logical change 1.3) 2004-04-15 20:56:59 +00:00
rtmon.c ip: make local functions static 2013-02-12 11:38:35 -08:00
rtpr (Logical change 1.3) 2004-04-15 20:56:59 +00:00
static-syms.c Fix build when shared libraries are disabled 2013-03-13 08:29:59 -07:00
tcp_metrics.c fix dependency on sizeof(__u64) == sizeof(unsigned long long) 2013-02-28 08:51:46 -08:00
tunnel.c iproute2: improved error messages 2013-02-11 09:22:22 -08:00
tunnel.h Use standard routines for interface name to index etc 2010-11-28 10:35:28 -08:00
xfrm_monitor.c ip: remove unnecessary ll_init_map 2013-03-28 15:17:47 -07:00
xfrm_policy.c ip/xfrm: Improve error strings 2013-03-28 14:42:32 -07:00
xfrm_state.c ip/xfrm: all to set flag XFRM_SA_XFLAG_DONT_ENCAP_DSCP 2013-05-17 08:38:26 -07:00
xfrm.h xfrm security context support 2011-03-17 09:58:23 -07:00