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
This commit is contained in:
parent
d86b0cad0d
commit
54600a9eaf
@ -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 = "\
|
||||
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user