[kaffe] unix-pthreads accept timeout
Dalibor Topic
robilad@yahoo.com
Wed, 7 Aug 2002 01:21:14 -0700 (PDT)
--- Godmar Back <gback@cs.utah.edu> wrote:
> >
> >
> > --------------Boundary-00=_E0RFWE6W1W2AT19KHIFS
> > Content-Type: text/plain;
> > charset="iso-8859-1"
> > Content-Transfer-Encoding: 8bit
> >
> > Hi,
> > Im not sure this was a bug or just that Im doing
> something wrong but in
> > kaffe/kaffevm/systems/unix-pthreads/syscalls.c the
> function jthreadedAccept
> > assumes that the fd is O_NONBLOCK. If the fd is
> blocking the function will
> > not go passed the accept syscall and thus never
> reach the BREAK_IF_LATE macro.
> > So what I did is to check if the socket is
> blocking or not, if its not I let
> > it go through the original loop if its blocking I
> put the fd in a select and
> > use the timeout in a timeval struct.
> > I attached my modified syscalls.c to this mail
> >
>
> I don't understand what the BLOCK_IF_LATE stuff is
> doing in
> unix-pthreads/syscalls.c. It certainly doesn't
> work, as you point out.
> Maybe it's work in progress (?)
It has not been touched in months, so the progress
seems to have cooled off ;) Godmar, should I check it
in?
best regards,
dalibor topic
__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com