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: <2997.212.0.200.22.1061540690.mtc@mail.moldtelecom.md> Date: Fri, 22 Aug 2003 11:24:50 +0300 (EEST) Subject: Re: 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 As Corinna said "debugging could help" and she was right. One of my functions closed file descriptors 0 and 1 after successfull listen() call. Socket fd is 0 in my case. And so accept()'s errno was EBADF. Now my service is working. -- 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/