Subject: Re: Unix domain sockets
To: Martin Husemann <martin@rumolt.teuto.de>
From: Bill Sommerfeld <sommerfeld@orchard.arlington.ma.us>
List: current-users
Date: 05/05/1999 15:02:00
This gets the sockaddr length wrong:

	if (bind(s, (struct sockaddr *)&sa, sizeof sa))

Use

	if (bind(s, (struct sockaddr *)&sa, SUN_LEN(&sa)))

instead

					- Bill