Skip to content

Commit 54600a9

Browse files
author
senthil
committed
Fixed two issues:
1. When the device is locked, the python source prints and exists. The server sees this as an empty packet. We are using this to exit out of the connection 2. When we use just launch, we need to do safequit and detach. Otherwise we hang for ever
1 parent d86b0ca commit 54600a9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ios-deploy.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ const char* lldb_prep_interactive_cmds = "\
4848
const char* lldb_prep_noninteractive_justlaunch_cmds = "\
4949
run\n\
5050
safequit\n\
51+
detach\n\
5152
";
5253

5354
const char* lldb_prep_noninteractive_cmds = "\
@@ -789,6 +790,8 @@ server_callback (CFSocketRef s, CFSocketCallBackType callbackType, CFDataRef add
789790
// FIXME: Close the socket
790791
//shutdown (CFSocketGetNative (lldb_socket), SHUT_RDWR);
791792
//close (CFSocketGetNative (lldb_socket));
793+
CFSocketInvalidate(lldb_socket);
794+
CFSocketInvalidate(server_socket);
792795
exit(exitcode_error);
793796
return;
794797
}

0 commit comments

Comments
 (0)