Hello!
It is:
I have the code that uses "select()" to accept requests from a socket.
But recently (it had never happened before I recompiled the kernel):
/////////////////////////////////////////////////////////////////////
bind()
listen()
sleep(1) // or do anything that can waste time for a while. But if I
// remove the part, the following "accept()" reports "Invalid
// argument" (EINVAL) when there is a new request coming.
while(1)
{
select()
accept()
}
//////////////////////////////////////////////////////////////////////
Can somebody tell me what causes the odd problem?? thanks.
--
d2003xx
Non-free software is wrong and we do not want it in our lives -- RMS
xx2002d -- selohssa era sresu sti dna xus swodniW