NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: kern/46464: lib/librumphijack/t_tcpip:ssh test case randomly fails
The following reply was made to PR kern/46464; it has been noted by GNATS.
From: Andreas Gustafsson <gson%gson.org@localhost>
To: Antti Kantee <pooka%NetBSD.org@localhost>
Cc: gnats-bugs%NetBSD.org@localhost
Subject: Re: kern/46464: lib/librumphijack/t_tcpip:ssh test case randomly
fails
Date: Sun, 20 Jul 2014 16:30:40 +0300
Antti Kantee wrote:
> Can NetBSD's poll() return with POLLIN set in revents, but not
> reflecting that in the return value? Is that legal behaviour?
>
> Or is there something else fishy going on?
I added some debug logging to hostpoll(), after the op_pollts() call:
if ((parg->pfds[parg->nfds-1].revents & POLLIN) && !(rv > 0)) {
fprintf(stderr, "this should not happen; rv = %d, errno =
%d\n", (int)rv, errno);
}
and got the output:
this should not happen; rv = -1, errno = 4
errno 4 is EINTR. As far as I can see, POSIX is silent on what
revents is allowed to contain on an error return.
--
Andreas Gustafsson, gson%gson.org@localhost
Home |
Main Index |
Thread Index |
Old Index