Re: Problem with Simple.Connect



On Wed, 2009-10-21 at 21:48 +0200, Peter Holik wrote:
> As reported at ubuntu:
> 
> https://bugs.launchpad.net/ubuntu/+source/plasma-widget-networkmanagement/+bug/334122/comments/44
> 
> network-manager-0.8~a~git.20091013t193206.679d548
> 
> did not work for me i got:
> 
> NetworkManager: <WARN> pppd_timed_out(): Looks like pppd didn't initialize our dbus module
> 
> i also saw no logs from pppd.
> 
> to see what happens i tried to get an strace output with
> 
> while :; do sleep .2; if pgrep pppd; then strace -s1000 -f -p $(pgrep pppd); fi;done
> 
> write(1, "Plugin /usr/lib/pppd/2.4.4/nm-pppd-plugin.so loaded.", 52) = ? ERESTARTSYS (To be
> restarted)
> --- SIGTTOU (Stopped (tty output)) @ 0 (0) ---
> --- SIGTTOU (Stopped (tty output)) @ 0 (0) ---
> 
> This means that pppd writes to stdout, but networkmanager did not read anything.
> 
> With this patch my huawai E220 is working now

Does it work consistently *without* that patch if you run NM manually
with:

NM_PPP_DEBUG=1 /usr/sbin/NetworkManager --no-daemon

?

Dan


> --- network-manager-0.8~a~git.20091013t193206.679d548.orig/src/ppp-manager/nm-ppp-manager.c +++
> network-manager-0.8~a~git.20091013t193206.679d548/src/ppp-manager/nm-ppp-manager.c @@ -921,7
> +921,7 @@
> 
>         priv->pid = 0;
>         if (!g_spawn_async (NULL, (char **) ppp_cmd->array->pdata, NULL,
> - G_SPAWN_DO_NOT_REAP_CHILD,
> + G_SPAWN_DO_NOT_REAP_CHILD || G_SPAWN_STDOUT_TO_DEV_NULL || G_SPAWN_STDERR_TO_DEV_NULL,
>                                         pppd_child_setup,
>                                         NULL, &priv->pid, err)) {
>                 goto out;
> 
> Well it would be better to read from stdout / stderr and log it
> 
> 
> 
> _______________________________________________
> NetworkManager-list mailing list
> NetworkManager-list gnome org
> http://mail.gnome.org/mailman/listinfo/networkmanager-list



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