No, I don’t think that’s the problem, I worked on telecom systems on Solaris for years, and this never happened to me (accept does not restart???, it is too basic to allow a bug).
By reading your code, I can see that your program will quit the outmost while loop, when accept() call fails (In array context, it returns empty array, which is evaluated to false). I don’t think that’s what you want, and it most likely confused you as what is the reason that it is not accepting connection any more.
Also it is not a good idea, for quite a few OS systems, to create socket with no timeout. This makes the wake up very slow, and probably even hang.
In reply to Re: In Solaris accept() is not restarted [on Solaris] ...
by pg
in thread In Solaris accept() is not restarted [on Solaris] ...
by TASdvlper
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |