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:
senthil 2014-10-13 17:20:52 -04:00
parent d86b0cad0d
commit 54600a9eaf

View File

@ -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;
}