Fix interactive debugging issue introduced with 8b0afcbc3 (#6397)

This commit is contained in:
Moritz Eckert 2016-12-29 17:56:33 +01:00 committed by radare
parent 12165ab875
commit fdc7edde68

View File

@ -359,7 +359,7 @@ static RDebugReasonType r_debug_native_wait (RDebug *dbg, int pid) {
int ret = waitpid (-1, &status, WAITPID_FLAGS);
#else
//eprintf ("waiting on pid %d ...\n", pid);
int ret = waitpid (pid, &status, WAITPID_FLAGS|WNOHANG);
int ret = waitpid (pid, &status, WAITPID_FLAGS);
#endif // WAIT_ON_ALL_CHILDREN
if (ret == -1) {
r_sys_perror ("waitpid");