Re: wpasupplicant hack. trivilal NM patch



On Sun, 2006-12-03 at 16:59 +0100, Gergely Gábor wrote:
> ---
> NetworkManager-0.6.4-gg/src/backends/NetworkManagerRedHat.c 2006-07-13
> 18:43:53.000000000 +0200
> +++
> NetworkManager-0.6.4/src/backends/NetworkManagerRedHat.c    2006-12-03
> 16:32:39.000000000 +0100
> @@ -298,15 +298,15 @@
>  {
>         FILE            *fp  = NULL;
>  
> -       if ((fp = fopen ("/var/run/mDNSResponder.pid", "rt")))
> +       if ((fp = fopen ("/var/run/avahi-daemon/pid", "rt")))
>         {
>                 int pid;
>                 int res = fscanf (fp, "%d", &pid);
>                 fclose (fp);
>                 if (res == 1)
>                 {
> -                       nm_info ("Restarting mDNSResponder.");
> -                       kill (pid, SIGUSR1);
> +                       nm_info ("Restarting Avahi-Deamon.");
> +                       kill (pid, SIGHUP);
>                 }
>         }
>  } 

That's wrong, as avahi doesn't need to be signalled that the interface
is gone, it will detect it automatically (check your /var/log/messages
to see that yourself).

Cheers

-- 
Bastien Nocera <hadess hadess net> 




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]