case REQ_COMM_WAIT:
/* FIXME: check also that src and dst processes are not suspended */
+ /* If there is a timeout it will be always enabled because, if the
+ * communication is not ready, it can timeout.
+ * This avoids false positives on dead-locks */
+ if(req->comm_wait.timeout >= 0)
+ return TRUE;
+
act = req->comm_wait.comm;
return (act->comm.src_proc && act->comm.dst_proc);
break;
return FALSE;
break;
- case REQ_COMM_TEST:
- act = req->comm_test.comm;
- return (act->comm.src_proc && act->comm.dst_proc);
- break;
-
default:
return TRUE;
}