Moisés Navarro Marín wrote:
> > > When executing the following code (no threads and no forks) I receive a
> > > Memory Fault error message:
> > >
> > >
> > > printf ("Before accept\n")
> > >
> > > if ((new_socket = accept (start_socket, (struct sockaddr *) &address,
>&addrlen)) < 0)
> >
> > Are you performing
> >
> > addrlen = sizeof(struct sockaddr_in);
> >
> > prior to the call to accept()?
>
> Yes. Well, what I really do is
> ==================
> struct sockaddr_in address;
> ...
> addrlen = sizeof (address)
> ...accept...
> ==================
In which case there isn't any single most likely reason why the
program would segfault. You will need to determine where the exception
occurred (e.g. by running gdb on the core file).
--
Glynn Clements <[EMAIL PROTECTED]>