[pkg-fso-commits] [SCM] GSM user space multiplexer branch, master, updated. 0.9.2.2-9-gabcbcd7

Michael 'Mickey' Lauer mickey at vanille-media.de
Tue Jan 27 18:36:31 UTC 2009


The following commit has been merged in the master branch:
commit 98a0c4c761f28ebc47e46b0760cc3dba2939da84
Author: Michael 'Mickey' Lauer <mickey at vanille-media.de>
Date:   Sat Jan 24 01:07:30 2009 +0100

    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<GSM0710_MAX_CHANNELS;i++)
 	{
 //terminate command given. Close channels one by one and finaly close
@@ -1779,6 +1783,7 @@ static int close_devices()
 			LOG(LOG_INFO, "Logical channel %d closed", channellist[i].id);
 		}
 	}
+#endif
 	if (serial.fd >= 0)
 	{
 		if (cmux_mode)

-- 
GSM user space multiplexer



More information about the pkg-fso-commits mailing list