[PATCH] Move "PF_UNIX: Address in use" warning somewhere sensible

Jouni Malinen jkmaline
Sat Nov 11 17:07:57 PST 2006

On Fri, Nov 10, 2006 at 02:41:27PM +0000, Roy Marples wrote:

> Currently, when wpa_supplicant starts and it 
> see's /var/run/wpa_supplicant/wlan then it spits out a "PF_UNIX: Address in 
> use" warning even if it works out the socket it dead and creates a new one.
> Users get confused by this warning, so here's a patch that moves the error to 
> a point in the code where it may actually be useful ;)

I agree with the change of not printing out this to stderr, but the
proposed patch is not correct. It moves perror() call to happen after
connect() at which point the original errno is not available anymore. I
replaced the perror() with wpa_printf(MSG_DEBUG, ..., strerror(errno))
without moving it in order to hide the message if debugging is not

Jouni Malinen                                            PGP id EFC895FA

More information about the Hostap mailing list