summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* ueventd: refactor uevent handlingColin Cross2011-03-311-89/+126
| | | | Change-Id: I2002be3580ff87b0a55dc030a9099bf6d795011f
* Add ifndef guards to remaining logging macros.Alexandre Elias2011-03-291-0/+20
| | | | Change-Id: I5fce9bffdb9e52d50059034fd1cc05ba7f0e3b87
* adb: keep mac build happyJP Abgrall2011-03-291-1/+1
| | | | | | Use FIONREAD instead of TIOCINQ Change-Id: Ic9db0228a51c546a798c70f08f2e644a1a376120
* Merge "adb: fix subprocess exit handling, oom adjust fixes, extra debugging."JP Abgrall2011-03-2918-124/+488
|\
| * adb: fix subprocess exit handling, oom adjust fixes, extra debugging.JP Abgrall2011-03-2818-124/+488
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add support for correctly handling subprocess termination in shell service (b/3400254 b/3482112 b/2249397) - have a waitpid() track the subprocess, then notify the fdevent via a socket - force an eof on the pty master in fdevent's new subproc handler. - modify fdevent to force-read the pty after an exit. * Migrate the "shell:blabla" handling to "#if !ADB_HOST" sections, where it belongs. * Fix the race around OOM adjusting. - Do it in the child before exec() instead of the in the parent as the child could already have started or not (no /proc/pid/... yet). * Allow for multi-threaded D() invocations to not clobber each other. - Allow locks across object files. - Add lock within D() - Make sure sysdesp init (mutex init also) is called early. * Add some missing close(fd) calls - Match similar existing practices near dup2() * Add extra D() invocations related to FD handling. * Warn about using debugging as stderr/stdout is used for protocol. * Fix some errno handling and make D() correctly handle it. * Add new adb trace_mask: services. * Make fdevent_loop's handle BADFDs more gracefully (could occur some subproc closed its pts explicitely). * Remove obsolete commandline args reported in help. (b/3509092) Change-Id: I928287fdf4f1a86777e22ce105f9581685f46e35
* | am 4fecade5: am cb1e616e: am 7c556549: Merge changes Icdefb5ff,Icd7f5f03Brad Fitzpatrick2011-03-290-0/+0
|\ \ | | | | | | | | | | | | | | | * commit '4fecade5f21d5d062ebe1c70535367d3407bb68f': Fix potential race introduced in Icd7f5f03 SocketClient: add optional reference counting
| * \ am cb1e616e: am 7c556549: Merge changes Icdefb5ff,Icd7f5f03Brad Fitzpatrick2011-03-293-3/+41
| |\ \ | | | | | | | | | | | | | | | | | | | | * commit 'cb1e616e3c108a9c8b159bb95c3356acf5797ba2': Fix potential race introduced in Icd7f5f03 SocketClient: add optional reference counting
| | * \ am 7c556549: Merge changes Icdefb5ff,Icd7f5f03Brad Fitzpatrick2011-03-233-3/+41
| | |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | * commit '7c556549079dbcc3f6f7ef4376978cd8c598aa62': Fix potential race introduced in Icd7f5f03 SocketClient: add optional reference counting
| | | * \ Merge changes Icdefb5ff,Icd7f5f03Brad Fitzpatrick2011-03-233-3/+41
| | | |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * changes: Fix potential race introduced in Icd7f5f03 SocketClient: add optional reference counting
| | | | * | Fix potential race introduced in Icd7f5f03Brad Fitzpatrick2011-03-223-17/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Digit wrote: "You probably don't want to close the socket here without updating c->socket as well. Otherwise, another thread holding a handle to the client after the c->decRef() could end up sending a message to a different socket, if the file descriptor index is reused by another client in the meantime." Change-Id: Icdefb5ffc0c7607325d7db761e1f04e5d868bfb7
| | | | * | SocketClient: add optional reference countingBrad Fitzpatrick2011-03-223-2/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Needed to fix a race in netd. Bug: 3438459 Change-Id: Icd7f5f035510235f733a25c0621479d3e644b152
* | | | | | am 15b15c4b: am a14da5b1: am 499b45a3: Merge "libsysutils: Fix a file ↵Brad Fitzpatrick2011-03-290-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | descriptor leak." * commit '15b15c4b4acede0b999e6a7af9ce797c6a58a62a': libsysutils: Fix a file descriptor leak.
| * | | | | am a14da5b1: am 499b45a3: Merge "libsysutils: Fix a file descriptor leak."Brad Fitzpatrick2011-03-290-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'a14da5b1e5c956dc90d8725ab6b68311f66e6b6a': libsysutils: Fix a file descriptor leak.
| | * | | | am 499b45a3: Merge "libsysutils: Fix a file descriptor leak."Brad Fitzpatrick2011-03-231-0/+1
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '499b45a3597bc2434bcc0974660470192ab4ff06': libsysutils: Fix a file descriptor leak.
| | | * | | Merge "libsysutils: Fix a file descriptor leak."Brad Fitzpatrick2011-03-231-0/+1
| | | |\| |
| | | | * | libsysutils: Fix a file descriptor leak.David 'Digit' Turner2011-03-221-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The recent refactoring of the select() loop in SocketListener missed a close() of the file descriptor when the onDataAvailable() callback returns false. Change-Id: I767caefab4b98ab350f2db2497ee2bd630f20850
* | | | | | am 34859033: am fdb915d2: (-s ours) am 4593e0a7: Merge "libsysutils: Fix ↵Brad Fitzpatrick2011-03-290-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | race condition in SocketListener thread." * commit '34859033c1076f23d958349b86cb0a5d42696745': libsysutils: Fix race condition in SocketListener thread.
| * | | | | am fdb915d2: (-s ours) am 4593e0a7: Merge "libsysutils: Fix race condition ↵Brad Fitzpatrick2011-03-290-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | in SocketListener thread." * commit 'fdb915d2569b73312e7ab8cb0c0556a3c3d1310a': libsysutils: Fix race condition in SocketListener thread.
| | * | | | am 4593e0a7: Merge "libsysutils: Fix race condition in SocketListener thread."Brad Fitzpatrick2011-03-232-27/+52
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '4593e0a7645ba5d848c0bf19d30f57b52fd305b1': libsysutils: Fix race condition in SocketListener thread.
| | | * | | Merge "libsysutils: Fix race condition in SocketListener thread."Brad Fitzpatrick2011-03-232-27/+52
| | | |\| |
| | | | * | libsysutils: Fix race condition in SocketListener thread.David 'Digit' Turner2011-03-222-27/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | + Handle EINTR in accept(), write() and select() + Fix a memory leak when deleting the mClients list + Fix typo in SocketListener.h Change-Id: Ie68bb3e2dbefe0dfdaa22a5cd06a42dbc4c0f8aa
* | | | | | am ff904188: am df424691: am 0e59123a: Merge "libsysutils: Handle EINTR in ↵Brad Fitzpatrick2011-03-280-0/+0
|\| | | | | | |_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | SocketClient::sendData()" * commit 'ff90418888631b2d0b195657b00da55b9d7edcd1': libsysutils: Handle EINTR in SocketClient::sendData()
| * | | | am df424691: am 0e59123a: Merge "libsysutils: Handle EINTR in ↵Brad Fitzpatrick2011-03-280-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | SocketClient::sendData()" * commit 'df42469121211905532c5c6d7aa95ec392a7eb35': libsysutils: Handle EINTR in SocketClient::sendData()
| | * | | am 0e59123a: Merge "libsysutils: Handle EINTR in SocketClient::sendData()"Brad Fitzpatrick2011-03-231-13/+29
| | |\| | | | | | | | | | | | | | | | | | | | | | * commit '0e59123adad22e1dac03e972ea37361056bb382c': libsysutils: Handle EINTR in SocketClient::sendData()
| | | * | Merge "libsysutils: Handle EINTR in SocketClient::sendData()"Brad Fitzpatrick2011-03-231-13/+29
| | | |\|
| | | | * libsysutils: Handle EINTR in SocketClient::sendData()David 'Digit' Turner2011-03-221-13/+29
| | | |/ | | | | | | | | | | | | | | | | | | | | + Improve allocation code in sendMsg(code,msg,addErrno) Change-Id: Ib5fe84bec1a167c369e7ba759acea395e832f6b5
* | | | Merge "defer firmware load until after filesystems are mounted"Brian Swetland2011-03-253-9/+36
|\ \ \ \
| * | | | defer firmware load until after filesystems are mountedBrian Swetland2011-03-253-9/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In some situations a driver could try to request firmware before /system is mounted. Previously we'd fail the request. Now we will retry the read-from-filesystem every 100ms until we find the firmware or we've finished the "fs" and "post-fs" stages of init. Change-Id: Ie32402f7d41c818bf20f3297286ed5f99705b72c
* | | | | am b26662c0: am c3e69903: am 97919656: Add support for the utime(2) family ↵Ken Sumrall2011-03-241-2/+35
|\ \ \ \ \ | | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | of system calls to the sdcard fuse filesystem. * commit 'b26662c0a2876767b2c06cb740f07b1010f91548': Add support for the utime(2) family of system calls to the sdcard fuse filesystem.
| * | | | am c3e69903: am 97919656: Add support for the utime(2) family of system ↵Ken Sumrall2011-03-241-2/+35
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | calls to the sdcard fuse filesystem. * commit 'c3e69903ed5f9e406fe51093fc41917512aa4036': Add support for the utime(2) family of system calls to the sdcard fuse filesystem.
| | * \ \ \ am 97919656: Add support for the utime(2) family of system calls to the ↵Ken Sumrall2011-03-241-2/+35
| | |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | sdcard fuse filesystem. * commit '97919656803126c6b28ea6070fc86d124ac4ef4b': Add support for the utime(2) family of system calls to the sdcard fuse filesystem.
| | | * | | | Add support for the utime(2) family of system calls to the sdcard fuse ↵Ken Sumrall2011-03-241-2/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | filesystem. Add support for the utime(2) family of system calls to change the modify and access time of files. Requires an updated bionic with support for the utimensat(2) system call. Change-Id: I8cc0c0e6671c5708849752f47e4c3d4be2858b61
* | | | | | | Add per interface dhcp client supportTK MUN2011-03-231-7/+81
| |_|_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added when using dhcp on both wimax and wifi. But should be useful across multiple services running dhcp now. Also adds a renewal api Change-Id: Ic850a612dd429cd675b5b0224ff58895f9d8e4d9 Signed-off-by: TK MUN <tk.mun@samsung.com>
* | | | | | am 5c8cc803: (-s ours) am 4ae741bb: (-s ours) am 7238072a: DO NOT MERGE ↵TK MUN2011-03-230-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change IP renew service name * commit '5c8cc8036cd2565ccf541f87b192a7c7a74f42e4': DO NOT MERGE Change IP renew service name
| * | | | | am 4ae741bb: (-s ours) am 7238072a: DO NOT MERGE Change IP renew service nameTK MUN2011-03-230-0/+0
| |\ \ \ \ \ | | |/ / / / | |/| | / / | | | |/ / | | |/| | * commit '4ae741bb34b9fe397986663e108a5091ea9ee29e': DO NOT MERGE Change IP renew service name
| | * | | am 7238072a: DO NOT MERGE Change IP renew service nameTK MUN2011-03-211-14/+2
| | |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | * commit '7238072a7da527147c21cc939160d975eb28b1ac': DO NOT MERGE Change IP renew service name
| | | * | | DO NOT MERGE Change IP renew service nameTK MUN2011-03-211-14/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Change invalid service name (dhcpcd_renew -> iprenew) - Remove condition which checks status of renew service. - Remove unused variable. Change-Id: Ic4ae7fb950baf4bd7286088a945a48ab5fe64e91
* | | | | | Fix potential race introduced in Icd7f5f03Brad Fitzpatrick2011-03-173-17/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Digit wrote: "You probably don't want to close the socket here without updating c->socket as well. Otherwise, another thread holding a handle to the client after the c->decRef() could end up sending a message to a different socket, if the file descriptor index is reused by another client in the meantime." Change-Id: Icdefb5ffc0c7607325d7db761e1f04e5d868bfb7
* | | | | | Merge "Revert "Debuggerd now outputs the offset of libc.so on the device as ↵Brian Carlstrom2011-03-171-69/+0
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | a separate item.""
| * | | | | | Revert "Debuggerd now outputs the offset of libc.so on the device as a ↵Brian Carlstrom2011-03-171-69/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | separate item." This reverts commit c031a3b006129ca408eaade325a53a334daee3b2. Conflicts: debuggerd/debuggerd.c Change-Id: Ib37ae793bbffdb4a81837bc51171cc62b12abe7d
* | | | | | | Merge "SocketClient: add optional reference counting"Brad Fitzpatrick2011-03-173-2/+34
|\ \ \ \ \ \ \
| * | | | | | | SocketClient: add optional reference countingBrad Fitzpatrick2011-03-173-2/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Needed to fix a race in netd. Bug: 3438459 Change-Id: Icd7f5f035510235f733a25c0621479d3e644b152
* | | | | | | | am cdfde07e: am f642c3d1: Make drmserver\'s primary group be system, so ↵Jeffrey Tinker2011-03-171-1/+1
|\ \ \ \ \ \ \ \ | |_|/ / / / / / |/| | / / / / / | | |/ / / / / | |/| | | | | | | | | | | | | | | | | | | setgid is not required in ueventd.stingray.rc * commit 'cdfde07eb7bd02bf8b3f6c46784309d33ff1df1e': Make drmserver's primary group be system, so setgid is not required in ueventd.stingray.rc
| * | | | | | am f642c3d1: Make drmserver\'s primary group be system, so setgid is not ↵Jeffrey Tinker2011-03-171-1/+1
| |\ \ \ \ \ \ | | | |_|_|/ / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | required in ueventd.stingray.rc * commit 'f642c3d12f4cffdc349b9ebfc4107de254ad8db9': Make drmserver's primary group be system, so setgid is not required in ueventd.stingray.rc
| | * | | | | Make drmserver's primary group be system, so setgid is not required in ↵Jeffrey Tinker2011-03-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ueventd.stingray.rc Change-Id: Ie8a287620d22b5c1bdc459fb288b7403589ab474
* | | | | | | Merge "Fix uninitialized variable bug in sdcard emulator - Following members ↵Mike Lockwood2011-03-161-7/+1
|\ \ \ \ \ \ \ | |_|_|/ / / / |/| | | | | | | | | | | | | were not initialized in fuse_init(). fuse->root.actual_name fuse->root.gen - Initialize fuse->root with memset()."
| * | | | | | Fix uninitialized variable bug in sdcard emulatorTerry Heo (Woncheol)2011-03-161-7/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Following members were not initialized in fuse_init(). fuse->root.actual_name fuse->root.gen - Initialize fuse->root with memset(). Change-Id: I4bce754ace608b526961f59049b2d780fd99756f
* | | | | | | Merge "In serial, skip over port as well if numbers found after colon."Mike Lockwood2011-03-161-2/+28
|\ \ \ \ \ \ \
| * | | | | | | In serial, skip over port as well if numbers found after colon.Terence Haddock2011-03-161-2/+28
| |/ / / / / / | | | | | | | | | | | | | | | | | | | | | Change-Id: Icd45f570a9527790eb0cd614a3f77da1a72375b1
* | | | | | | am f0a670eb: (-s ours) do not merge. Fix a race in system properties.satok2011-03-150-0/+0
|\ \ \ \ \ \ \ | |/ / / / / / |/| / / / / / | |/ / / / / | | | | | | * commit 'f0a670eb12a0e5854dfd2a9284973d0711392653': do not merge. Fix a race in system properties.