truss(1) locked in kernel with 8.0-BETA2
Nathan Lay
nslay at comcast.net
Sun Aug 23 20:13:43 UTC 2009
Ed Schouten wrote:
> * Nathan Lay <nslay at comcast.net> wrote:
>
>> Instead of zeroing and setting master and STDIN_FILENO on the fd_set
>> every iteration, <snip>
>>
>
> The current code doesn't zero the fdsets each iteration, only during
> startup:
>
> | FD_ZERO(&rfd);
> | for (;;) {
> | FD_SET(master, &rfd);
> | if (!nostdin)
> | FD_SET(STDIN_FILENO, &rfd);
>
>
Ah right, I misread. In any case, once 0 bytes are written to the
master descriptor is that continually needed and does select() really
need to continue to examine STDIN_FILENO?
More information about the freebsd-current
mailing list