Re: Problem with Simple.Connect
- From: "Peter Holik" <peter holik at>
- To: networkmanager-list gnome org
- Subject: Re: Problem with Simple.Connect
- Date: Wed, 21 Oct 2009 21:48:24 +0200 (CEST)
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
--- 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]