summaryrefslogtreecommitdiffstats
path: root/adb/jdwp_service.c
Commit message (Collapse)AuthorAgeFilesLines
* Add more debug information.leozwang2014-08-221-0/+1
| | | | | | | | | | Re-commit https://googleplex-android-review.googlesource.com/#/c/519430/ Add fix for win_sdk build. Add socketpair debug log. Also output thread information in log on host side. Change-Id: I21021bc111a3f7362a91b70593e3738125878118
* Revert "Add more debug information."Leo Wang2014-08-151-1/+0
| | | | | | This reverts commit 8693bc7abd39f9dcd4b73bdd43054de450a45a03. Change-Id: I7e6df6c155d9a7544c860b21bcb31c4e04d122e7
* Add more debug information.leozwang2014-08-141-0/+1
| | | | | | | Add socketpair debug log. Also output thread information in log on host side. Change-Id: I38168990d77e53eff69cb70f442cc4e7acb4b20f
* Fix adb leaking file descriptors to forked processesBenoit Goby2011-02-021-0/+1
| | | | | | | | | | 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
* Fix ADB daemon file descriptor leakTeddie Stenvi2010-06-181-1/+26
| | | | | | | | | | | | | | | | | | | | | The ADB (Android Debug Bridge) daemon suffers from a file descriptor leak. When transfering file descriptors, opened by the adbd daemon, to a JDWP process for debugging through sendmsg, the file descriptor is duplicated by the kernel and a copy is transfered to the JDWP process. Adbd neglects to close it's copy of the descriptor after the sendmsg call which causes a file descriptor leak in the process. Eventually this causes the daemon to hit its maximum roof of opened file descriptors thus making it impossible for the process to serve any new commands from the adb server. Jdwp_service.c has been modified to close the file descriptor after the send message call has succeded. Also, the socket used for transfering the file descriptor is set to blocking mode before the sendmsg call since the adbd processes needs to know when the duplication has been completed by the kernel. The flags are reset to its original state after the sendmsg call. Change-Id: I76b15460301ac01e432f5ce8678ff58c658c16f2 Signed-off-by: Christian Bejram <christian.bejram@stericsson.com>
* adb: Add "adb disconnect" command for disconnecting TCP/IP devices.Mike Lockwood2009-10-111-1/+1
| | | | | | | Also check that device is not already connected in "adb connect" Change-Id: I5f84b56b63d8c6932f23791cac319fd6bc39d36c Signed-off-by: Mike Lockwood <lockwood@android.com>
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-0/+709
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-709/+0
|
* Code drop from //branches/cupcake/...@124589The Android Open Source Project2008-12-171-2/+2
|
* Initial ContributionThe Android Open Source Project2008-10-211-0/+709