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 Date: Sat, 8 Feb 2003 21:16:10 +0100 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: accept() seg faults using non-global address for buffer or socket structure Message-ID: <20030208201610.GA7763@cygbert.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <000c01c2cf34$053566b0$1801a8c0 AT EkstromDell> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <000c01c2cf34$053566b0$1801a8c0@EkstromDell> User-Agent: Mutt/1.4i On Fri, Feb 07, 2003 at 10:34:54PM -0700, J. J. Ekstrom wrote: > I've looked at every mailing list and FAQ for limitations on the Cygwin > accept() I can't find this one. > [...] > if ((new_s = accept(s, (struct sockaddr *)&sin, &len)) < 0) Cockpit error. Try initializing len before calling accept(2). Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Developer mailto:cygwin AT cygwin DOT com Red Hat, Inc. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/