[Sugar-devel] Wanting to know a bit of (NetworkManager) workflow upon resume-from-suspend

Martin Langhoff martin.langhoff at gmail.com
Wed May 2 04:42:11 EDT 2012

On Wed, May 2, 2012 at 4:07 AM, Martin Abente
<martin.abente.lahaye at gmail.com> wrote:
> I think (guessing by the responses) the original problem here is that, if
> you disable the mesh AFTER NM has taken the device, NM crashes. This a
> regression bug, considering that this didn't happened in fedora-11 based
> builds.

The timings in F11 builds were completely different. Maybe you were
winning the race that you're now losing.

> So the solution here is to find another place to place the script, where it
> guarantee that the script will be executed before NM does its job at resume
> time.

udev script :-) -- I am pretty sure you can number yourself lower (to
run earlier) than the udev script that fires off the "new device"
event to NM.

> Another solution is to find out why NM crashes now and why didn't before,
> but I wouldn't go that way.

Making NM completely resilient to these race conditions is probably a hard task.


 martin.langhoff at gmail.com
 martin at laptop.org -- Software Architect - OLPC
 - ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 - http://wiki.laptop.org/go/User:Martinlanghoff

More information about the Devel mailing list