Re: 1.286 nm_deactivate_device bug
- From: Dan Williams <dcbw redhat com>
- To: Bill Moss <bmoss clemson edu>
- Cc: networkmanager list <networkmanager-list gnome org>
- Subject: Re: 1.286 nm_deactivate_device bug
- Date: Mon, 21 Feb 2005 09:49:56 -0500 (EST)
On Sun, 20 Feb 2005, Bill Moss wrote:
> g_source_remove removes a source from the default Main context but what
> the nm_deactivate_device function is trying to do is remove a source
> from the Main context of the device. I found this reference that seems
> to be talking about a similar issue.
>
> http://lists.imendio.com/pipermail/loudmouth/2004-September/000167.html
Bill,
Thanks for tracking that one down, I'll fix it ASAP. It seems that you can't
ever remove a GSource from a non-main context and _reuse_ it. Blatant API
oversight :) The fix is to use g_source_destroy() like they say in the email,
but then of course you cannot reuse the GSource. We actually don't want to
reuse it in NetworkManager, but the facility to reuse a non-default-context
GSource simply isn't there.
Dan
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]