On Fri, 24 Jan 2014, Hisashi T Fujinaka wrote: > I'm confused. Should I start with a clean tree or a modified tree? And > which patches should I use? I have a lot in my email at this point. If I checkout the current git or CVS head and apply this then the scp test passes on NetBSD 6.1.3 where it was hanging previously: Index: atomicio.c =================================================================== RCS file: /var/cvs/openssh/atomicio.c,v retrieving revision 1.40 diff -u -r1.40 atomicio.c --- atomicio.c 24 Sep 2010 12:15:11 -0000 1.40 +++ atomicio.c 25 Jan 2014 06:03:19 -0000 @@ -57,7 +57,7 @@ struct pollfd pfd; pfd.fd = fd; - pfd.events = f == read ? POLLIN : POLLOUT; + pfd.events = f == vwrite ? POLLOUT : POLLIN; while (n > pos) { res = (f) (fd, s + pos, n - pos); switch (res) {