[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: kio::pop3
From: Stefan Taferner <taferner () salzburg ! co ! at>
Date: 1999-06-24 10:56:15
[Download RAW message or body]
On Fri, 18 Jun 1999, Mario Weilguni wrote:
> The kioslave for pop3 might have a bug:
> in pop3.cc, line94:
>while (::select(m_iSock+1, &FDs, 0, 0, &m_tTimeout) ==0);
[...]
> So it should be:
> do {
> m_tTimeout.tv_sec = 10;
> m_tTimeout.tv_usec = 0;
> } while(::select(m_iSock+1, &FDs, 0, 0, &m_tTimeout) == 0);
Yes, setting the timeout before calling select() is mandatory.
What the timeout contains after the select call depends on the
Unix flavor: some of them return the remaining time then.
--Stefan
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic