dynamic allocation in bsd-poll.c?
Scott Neugroschl
scott_n at xypro.com
Tue Aug 12 07:29:16 EST 2008
I'm wondering about the rationale behind the allocation of the fd_set
for the select() call in bsd-poll.c.
Is there a reason we're dynamically allocating the fd_sets using nmemb,
rather than simply putting three fd_set variables on the stack, followed
by FD_ZERO calls?
This seems to make life more difficult, as evidenced by the "goto out"
statement, needed to free the memory.
----
Scott Neugroschl
XYPRO Technologies
scott_n at xypro.com
805-583-2874 x121
More information about the openssh-unix-dev
mailing list