From: Michael 'Mickey' Lauer Date: Sat, 24 Jan 2009 00:07:30 +0000 (+0100) Subject: do not attempt to close virtual channels during shutdown. First off, X-Git-Tag: 0.9.3.1~1 X-Git-Url: http://git.neil.brown.name/?a=commitdiff_plain;h=98a0c4c761f28ebc47e46b0760cc3dba2939da84;p=gsm0710muxd.git do not attempt to close virtual channels during shutdown. First off, the mainloop is no longer running, second, we're about to tell the modem to completely turn off. NOTE: Ideally this would be fixed properly, such as -- first closing all the channels, _then_ flagging the mainloop to quit. After that, running some -- modem specific -- power off command. We can't use it like that on the mc75i. --- diff --git a/src/gsm0710muxd.c b/src/gsm0710muxd.c index f6aa2e0..6260d24 100644 --- a/src/gsm0710muxd.c +++ b/src/gsm0710muxd.c @@ -1764,6 +1764,10 @@ static int close_devices() g_source_remove(serial.g_source); serial.g_source = -1; int i; +// don't bother closing the channels over the MUX protocol, first off, +// the mainloop is no longer running anyways, second, we're about to +// shutdown the modem completely in a second. +#if 0 for (i=1;i= 0) { if (cmux_mode)