aboutsummaryrefslogtreecommitdiffstats
path: root/emulator/tools/qemu-props.c
Commit message (Collapse)AuthorAgeFilesLines
* Delete duplicate filesYing Wang2013-02-281-116/+0
| | | | | | These files are already in development/tools/emulator. Change-Id: I58988ce49804583b06e7d93380c44ba800448216
* Rename (IF_)LOGI(_IF) to (IF_)ALOGI(_IF) DO NOT MERGESteve Block2012-01-051-1/+1
| | | | | | | See https://android-git.corp.google.com/g/156801 Bug: 5449033 Change-Id: Ic2929fa9e6d15ce1710fc960c7570ee11cc7b0f6
* Revert 183675b74e5a58211e5d9a90a9ca86546ed3e245David 'Digit' Turner2011-04-141-0/+116
| | | | | | | | | | | | | | | | Unfortunately, we need to keep the duplicate libraries here to prevent breaking a few internal branches for now. Remove obsolete emulator modules The corresponding modules have all been moved to development/tools/emulator/system/ already. Note that we use a global variable Make trick to prevent the same module from being built twice, so removing these files doesn't break the builds. Another patch should remove the global variable Make trick from development/tools/emulator/system after this patch. Change-Id: I97332216b311608de61919cb75f4b760b249c0d9
* Remove obsolete emulator modulesDavid 'Digit' Turner2011-04-071-116/+0
| | | | | | | | | | | The corresponding modules have all been moved to development/tools/emulator/system/ already. Note that we use a global variable Make trick to prevent the same module from being built twice, so removing these files doesn't break the builds. Another patch should remove the global variable Make trick from development/tools/emulator/system after this patch. Change-Id: I547d2a0173ddf58c1870784920ce795f6a0d7bcf
* qemu-props: Signal end of property list.Dries Harnie2010-06-071-2/+4
| | | | Change-Id: I16f8c8b370f42c6229b3deabd66d2aaabd0b7937
* This adds a new helper program (qemu-props) to support the emulated system.David 'Digit' Turner2009-05-261-0/+114
Its purpose is to contact the 'boot-properties' service during the boot process and to set the list of system properties read from the emulator program through it. It must be launched from /system/etc/init.goldfish.rc as root. It depends on the 'boot-properties' service being implemented by the emulator (in a later patch). If not available, it will simply timeout. This also fixes a potential crash in qemud which can happen in the following case: - client sends a command to a service - the service responds with one or more message - the service immediately closes the connection before the client can read the data what happened is that the FDHandler object was buffering out-going packets to the client, but the Multiplexer acted on the disconnection immediately. This resulted in: - client_free() being called - fdhandler_shutdown() being called - the FDHandler being placed on the 'closing' list to be able to send buffered packets later. And 'receiver_close' being called - client_fd_close() being called, which would call client_free() recursively - the second client_free() call would free the object - the first client_free() call would try to free the object again - ==> dlmalloc() detects a double-free and immediately aborts. the fixes simply avoids the calle to receiver_close() in fdhandler_shutdown() since this function is called from an explicit shutdown request from the multiplexer, it doesn't correspond to the case where the client has closed the connection itself.