iproute2/lib
Andrey Vagin bcb9d40319 ip: set the close-on-exec flag for descriptors
Otherwise a program executed by "ip netns exec" has two extra
descriptors.

$ ip netns exec test /bin/bash
$ lsof -p $$
...
bash    817 root    0u   CHR  136,0       0t0          3 /dev/pts/0
bash    817 root    1u   CHR  136,0       0t0          3 /dev/pts/0
bash    817 root    2u   CHR  136,0       0t0          3 /dev/pts/0
bash    817 root    3u  sock    0,6       0t0      13386 protocol: NETLINK
bash    817 root    4r   REG    0,3         0 4026532155 net
bash    817 root  255u   CHR  136,0       0t0          3 /dev/pts/0

Cc: Stephen Hemminger <stephen@networkplumber.org>
Reported-by: Dilip Daya <dilip.daya@hp.com>
Acked-by: Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: Andrey Vagin <avagin@openvz.org>
2013-06-04 09:11:06 -07:00
..
Makefile lib: include the Config file too 2012-12-17 09:13:46 -08:00
dnet_ntop.c dnet: fix strict aliasing warnings 2010-07-23 12:30:48 -07:00
dnet_pton.c dnet: fix strict aliasing warnings 2010-07-23 12:30:48 -07:00
inet_proto.c lib: make string arguments const 2013-02-12 11:39:07 -08:00
ipx_ntop.c include needed files 2012-12-23 11:49:06 -08:00
ipx_pton.c include needed files 2012-12-23 11:49:06 -08:00
libgenl.c iproute2: GENL: merge GENL_REQUEST and GENL_INITIALIZER 2012-09-17 15:46:45 -07:00
libnetlink.c ip: set the close-on-exec flag for descriptors 2013-06-04 09:11:06 -07:00
ll_addr.c lib: make string arguments const 2013-02-12 11:39:07 -08:00
ll_map.c ll_map: add name and index hash 2013-03-28 14:57:28 -07:00
ll_proto.c lib: make string arguments const 2013-02-12 11:39:07 -08:00
ll_types.c Update ARP header type table 2010-07-23 13:12:12 -07:00
rt_names.c lib: make string arguments const 2013-02-12 11:39:07 -08:00
utils.c iproute2: fix build failure on sparc due to -Wformat and tv_usec 2013-06-03 19:56:25 -07:00