[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: help: SMSD errors

From: Pawel Kot
Subject: Re: help: SMSD errors
Date: Mon, 19 Jan 2004 11:08:48 +0100 (CET)

On Mon, 20 Oct 2003, Charmaine Tian wrote:

> 1) duplicate SMS: when more than one SMS coming in around same time, half of
> the SMS are received twice or more times with the following error messages:
> "Event 1 failed with return code 18!"
> Example: sending 5 SMS to the modem phone, SMSD receives all 5 SMS, but
> returns error 18  for 2nd and 4th SMS, re-read these two SMS, then generates
> error 18 for 2nd SMS, and re-read the 2nd SMS. As a result, 1st, 3rd, 5th
> SMS are received once, 4th SMS received twice, and 2nd SMS receive three
> times.

I know it is the late answer, but I think better late then never. Does the
below patch fix it?

diff -u -r1.37 smsd.c
--- smsd/smsd.c 5 Oct 2003 19:42:41 -0000       1.37
+++ smsd/smsd.c 19 Jan 2004 09:55:06 -0000
@@ -442,6 +442,7 @@
     // Signal arrived.

     pthread_mutex_lock (&smsMutex);
+    phoneMonitor.sms.messages = g_slist_reverse(phoneMonitor.sms.messages);
     g_slist_foreach (phoneMonitor.sms.messages, ReadSMS, (gpointer) NULL);
     pthread_mutex_unlock (&smsMutex);

mailto:address@hidden :: mailto:address@hidden :: Kernel Traffic po polsku

reply via email to

[Prev in Thread] Current Thread [Next in Thread]