accept() seg faults using non-global address for buffer or socket structure

2003-02-08 Thread J. J. Ekstrom
I've looked at every mailing list and FAQ for limitations on the Cygwin accept() I can't find this one. The following program illustrates the problem, simply moving the struct sockaddr_in sin, and char buf definition lines to be local variable of the main will cause the accept to fail with a bad

Re: accept() seg faults using non-global address for buffer or socket structure

2003-02-08 Thread Corinna Vinschen
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