Hi Guillaume, On 05/04/2011 10:39 AM, Guillaume Zajac wrote: > --- > gatchat/ppp.h | 1 + > gatchat/ppp_net.c | 9 +++++++++ > 2 files changed, 10 insertions(+), 0 deletions(-) > I applied this patch, however I had to fix it slightly afterward: > @@ -196,3 +196,12 @@ void ppp_net_free(struct ppp_net *net) > g_free(net->if_name); > g_free(net); > } > + > +void ppp_net_suspend_interface(struct ppp_net *net) > +{ > + if (net == NULL || net->channel == NULL) > + return; > + > + if (net->watch) > + g_source_remove(net->watch); > +} Whenever removing a watch, please make sure to reset the watch variable back to zero. Also, I'm missing the _resume version of the above function... Regards, -Denis