Peter Jones wrote:
@@ -393,12 +392,12 @@ nashBdevIterNext(nashBdevIter *iterp, struct
nash_block_dev **dev)
continue;
case POLLING:
timeout = iter->timeout;
- if (block_process_one_uevent(iter->nc, &timeout,
&node) > 0
- && node) {
+ rc = block_process_one_uevent(iter->nc, &timeout,
&node);
+ if (rc > 0 && node) {
*dev = node->bdev;
return 1;
}
- if (speczero(&timeout))
+ if (rc <= 0)
iter->state = DONE;
continue;
case DONE:
Ok, what have I missed here -- where are we handling a real timeout now?
A real timeout has a return status of 0, notice the:
if (rc <= 0)
iter->state = DONE;
Check.
Regards,
Hans
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list