Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-Envelope-To: cygwin AT cygwin DOT com Message-ID: <1683.212.0.200.22.1061299847.mtc@mail.moldtelecom.md> Date: Tue, 19 Aug 2003 16:30:47 +0300 (EEST) Subject: accept() doesn't block while running as NT service From: linamat AT moldtelecom DOT md To: cygwin AT cygwin DOT com User-Agent: Moldtelecom Mail System MIME-Version: 1.0 Content-Type: text/plain;charset=windows-1251 X-Priority: 3 Importance: Normal Note-from-DJ: This may be spam I have a problem with accept() on TCP socket. Al things works well when I start the program under .\\Administrator credentials, but fails in NT service. { struct sockaddr_in sa; int sa_len = sizeof sa; for (;;) { t = accept(s,(struct sockaddr *)&sa,&sa_len); if (t == -1) continue; // working with client.... ....... } } It returns -1 and enters in infinite loop. I've tried such with UNIX socket and it behaved normally. Can you explain me why? -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/