diff options
author | David Turner <> | 2009-03-25 02:42:45 -0700 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2009-03-25 02:42:45 -0700 |
commit | b58c44e55548129243185ef5927bd3abb5903044 (patch) | |
tree | e1d0c6b12d42cd59d093d318139ce19785ef07ed /android/main.c | |
parent | 9877e2e3e3c2df64de306b48f80a4f5d0b028d95 (diff) | |
download | external_qemu-b58c44e55548129243185ef5927bd3abb5903044.zip external_qemu-b58c44e55548129243185ef5927bd3abb5903044.tar.gz external_qemu-b58c44e55548129243185ef5927bd3abb5903044.tar.bz2 |
Automated import from //branches/donutburger/...@142528,142528
Diffstat (limited to 'android/main.c')
-rw-r--r-- | android/main.c | 32 |
1 files changed, 10 insertions, 22 deletions
diff --git a/android/main.c b/android/main.c index b645740..efa79aa 100644 --- a/android/main.c +++ b/android/main.c @@ -1999,21 +1999,9 @@ int main(int argc, char **argv) exit(1); } } - else { - if (!opts->skin && android_build_out) { - /* select default skin based on product type */ - const char* p = strrchr(android_build_out,'/'); - if (p) { - if (p[1] == 's') { - opts->skin = "HVGA"; /* used to be QVGA-L */ - } else if (p[1] == 'd') { - opts->skin = "HVGA"; - } - } - D("autoconfig: -skin %s", opts->skin); - } - android_avdParams->skinName = opts->skin; - } + android_avdParams->skinName = opts->skin; + android_avdParams->skinRootPath = opts->skindir; + /* setup the virtual device differently depending on whether * we are in the Android build system or not */ @@ -2848,15 +2836,15 @@ void android_emulation_setup( void ) * under VMWare. */ BEGIN_NOSIGALRM - pid = fork(); + pid = fork(); + if (pid == 0) { + int fd = open("/dev/null", O_WRONLY); + dup2(fd, 1); + dup2(fd, 2); + execl( tmp, _ANDROID_PING_PROGRAM, "ping", "emulator", VERSION_STRING, NULL ); + } END_NOSIGALRM - if (pid == 0) { - int fd = open("/dev/null", O_WRONLY); - dup2(fd, 1); - dup2(fd, 2); - execl( tmp, _ANDROID_PING_PROGRAM, "ping", "emulator", VERSION_STRING, NULL ); - } /* don't do anything in the parent or in case of error */ strncat( tmp, " ping emulator " VERSION_STRING, PATH_MAX - strlen(tmp) ); D( "ping command: %s", tmp ); |