Fix invalid command quit

This commit is contained in:
pancake 2014-03-05 01:11:24 +01:00
parent a43bc1e59d
commit 7f8666a006
1 changed files with 3 additions and 4 deletions

View File

@ -598,10 +598,9 @@ int main(int argc, char **argv, char **envp) {
break; break;
} }
if (lock) r_th_lock_enter (lock); if (lock) r_th_lock_enter (lock);
if ((ret = r_core_prompt_exec (&r))==-1) { /* -1 means invalid command, -2 means quit prompt loop */
if ((ret = r_core_prompt_exec (&r))==-2)
break; break;
// eprintf ("Invalid command\n");
}
if (lock) r_th_lock_leave (lock); if (lock) r_th_lock_leave (lock);
if (rabin_th && !r_th_wait_async (rabin_th)) { if (rabin_th && !r_th_wait_async (rabin_th)) {
eprintf ("rabin thread end \n"); eprintf ("rabin thread end \n");