platform_system_core/adb
Benoit Goby 3b4a0c81c4 Fix adb leaking file descriptors to forked processes
accept() creates a new file descriptor that should be closed on exec so
that forked processes don't keep a fd opened on the socket.

This also fixes b/3297070 where adb hangs after running adb on the
target.

Change-Id: I8df511289e5549ae49b4824c9dfb71a3bf85eae8
2011-02-03 15:26:45 -05:00
..
Android.mk merge from open-source master 2010-06-02 08:14:33 -07:00
MODULE_LICENSE_APACHE2 eclair snapshot 2009-11-12 18:46:23 -08:00
NOTICE eclair snapshot 2009-11-12 18:46:23 -08:00
OVERVIEW.TXT Fixing spelling errors in adb docs 2010-04-28 11:38:39 -04:00
SERVICES.TXT Fixing spelling errors in adb docs 2010-04-28 11:38:39 -04:00
adb.c Fix adb leaking file descriptors to forked processes 2011-02-03 15:26:45 -05:00
adb.h adb connect and disconnect improvements: 2010-06-02 11:31:26 -04:00
adb_client.c Make adb's daemon-port on the host machine configurable. 2010-04-28 11:38:34 -04:00
adb_client.h Make adb's daemon-port on the host machine configurable. 2010-04-28 11:38:34 -04:00
commandline.c adb: Fix command-line parser. 2011-02-03 15:26:43 -05:00
console.c auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
fdevent.c Cleaning up whitespace in adb sources. Nothing more, nothing less. 2009-05-18 17:36:28 +02:00
fdevent.h Cleaning up whitespace in adb sources. Nothing more, nothing less. 2009-05-18 17:36:28 +02:00
file_sync_client.c adb: Don't report negative number of bytes after pushing file > 2 gigabytes 2011-02-03 15:26:35 -05:00
file_sync_service.c auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
file_sync_service.h adb: Improved detection of big endian architecture 2010-10-16 14:35:28 +02:00
framebuffer_service.c eclair snapshot 2009-11-12 18:46:23 -08:00
get_my_path_darwin.c eclair snapshot 2009-11-12 18:46:23 -08:00
get_my_path_freebsd.c FreeBSD support for usb-connected devices in adb 2009-10-25 01:56:35 +11:00
get_my_path_linux.c Make get_my_path() safer 2009-10-22 02:55:00 +11:00
get_my_path_windows.c Make get_my_path() safer 2009-10-22 02:55:00 +11:00
jdwp_service.c Fix adb leaking file descriptors to forked processes 2011-02-03 15:26:45 -05:00
log_service.c auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
mutex_list.h auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
protocol.txt Cleaning up whitespace in adb sources. Nothing more, nothing less. 2009-05-18 17:36:28 +02:00
remount_service.c Fix adb remount on non-MTD devices 2010-05-24 11:27:16 -04:00
services.c Fix adb leaking file descriptors to forked processes 2011-02-03 15:26:45 -05:00
sockets.c adb: optimize socket-list-walking code 2010-06-14 09:59:34 -07:00
sockets.dia auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
sysdeps.h Fix adb leaking file descriptors to forked processes 2011-02-03 15:26:45 -05:00
sysdeps_win32.c eclair snapshot 2009-11-12 18:46:23 -08:00
test_track_devices.c auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
test_track_jdwp.c auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
transport.c adb: improve debug traces readability. 2011-02-03 15:26:37 -05:00
transport_local.c adb: Improved detection of big endian architecture 2010-10-16 14:35:28 +02:00
transport_usb.c adb: Improved detection of big endian architecture 2010-10-16 14:35:28 +02:00
usb_libusb.c FreeBSD support for usb-connected devices in adb 2009-10-25 01:56:35 +11:00
usb_linux.c adb: Increase device descriptor buffer size in Linux host USB support 2011-02-03 15:26:41 -05:00
usb_linux_client.c eclair snapshot 2009-11-12 18:46:23 -08:00
usb_osx.c eclair snapshot 2009-11-12 18:46:23 -08:00
usb_vendors.c Adding Texas Instruments to the VID list. 2011-02-03 15:26:33 -05:00
usb_vendors.h Support for 3rd party USB Vendor IDs in adb. 2009-05-22 15:25:25 -07:00
usb_windows.c eclair snapshot 2009-11-12 18:46:23 -08:00
utils.c auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
utils.h auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00