OSDN Git Service

android: Make system-emulator start daemon only once
authorMarcel Holtmann <marcel@holtmann.org>
Fri, 1 Nov 2013 13:07:42 +0000 (06:07 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 1 Nov 2013 13:07:42 +0000 (06:07 -0700)
android/system-emulator.c

index 7d17546..24f2741 100644 (file)
@@ -98,6 +98,9 @@ static void system_socket_callback(int fd, uint32_t events, void *user_data)
        if (strcmp(buf, "ctl.start=bluetoothd"))
                return;
 
+       if (daemon_pid > 0)
+               return;
+
        ctl_start();
 }