On Mon, 04 Jul 2016 12:43:12 +0200, Jeremie Courreges-Anglas wrote: > Showing this to a wider audience, > > This was initially prompted by a diff to replace calloc with > reallocarray. As noted by guenther, there is a problem with the > comparisons between width, rpcsock and pingsock; this, plus the fd_set > allocation inconvenience would be easily fixed by moving from select to > poll. > > I do not use YP so tests are more than welcome.
You need to check POLLHUP as well as POLLIN. It would also be good to handle EINTR. - todd
