Skip to content

Commit

Permalink
Fixed two issues:
Browse files Browse the repository at this point in the history
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
  • Loading branch information
senthil committed Oct 13, 2014
1 parent d86b0ca commit 54600a9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ios-deploy.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ const char* lldb_prep_interactive_cmds = "\
const char* lldb_prep_noninteractive_justlaunch_cmds = "\
run\n\
safequit\n\
detach\n\
";

const char* lldb_prep_noninteractive_cmds = "\
Expand Down Expand Up @@ -789,6 +790,8 @@ server_callback (CFSocketRef s, CFSocketCallBackType callbackType, CFDataRef add
// FIXME: Close the socket
//shutdown (CFSocketGetNative (lldb_socket), SHUT_RDWR);
//close (CFSocketGetNative (lldb_socket));
CFSocketInvalidate(lldb_socket);
CFSocketInvalidate(server_socket);
exit(exitcode_error);
return;
}
Expand Down

0 comments on commit 54600a9

Please # to comment.