# | Line 308 | Line 308 | ray_presult( /* check for a completed ray */ | |
---|---|---|
308 | n = ray_pnprocs - ray_pnidle; | |
309 | if (n <= 0) /* return if nothing to await */ | |
310 | return(0); | |
311 | + | if (!poll && ray_pnprocs == 1) /* one process -> skip select() */ |
312 | + | FD_SET(r_proc[0].fd_recv, &readset); |
313 | + | |
314 | getready: /* any children waiting for us? */ | |
315 | for (pn = ray_pnprocs; pn--; ) | |
316 | if (FD_ISSET(r_proc[pn].fd_recv, &readset) || |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |