[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: locking in smsd
From: |
alonso acuña |
Subject: |
Re: locking in smsd |
Date: |
Thu, 31 May 2012 23:59:27 -0600 |
Hi. I am using model=AT and connection=serial with a USB phone.
This works by opening the port, sending commands and then closing the
port. As long as these operations do not overlap (run at the same
time) then neither gnokii or smsd will have any trouble.
I did a test where I ran gnokii --identify continuously, faster than
one per second while smsd was also running and after deleting the
lock. And it took like 15 seconds for gnokii to stop working. After a
while it started working again. Smsd did not seem to be affected.
So I would think that smsd should be able to place the lock only when
it really needs to send any commands to the phone. At least for this
configuration which is the only one I am familiar with.
On 5/31/12, Pawel Kot <address@hidden> wrote:
> Hi,
>
> On Fri, Jun 1, 2012 at 7:15 AM, alonso acuña <address@hidden> wrote:
>> If I delete the lockfile then gnokii continues to work properly even
>> with smsd running.
>
> I think you're just lucky. In the normal case smsd will stop working
> or gnokii call will fail.
>
>> I suppose if by chance they both try to do
>> something at the same time then that would cause trouble. It would be
>> better if smsd or libgnokii placed the lock only when really using the
>> phone.
>
> The way how smsd works is to keep alive connection with the phone. So
> in these terms it is using the phone all the time.
>
> take care,
> --
> Pawel Kot
>
> _______________________________________________
> gnokii-users mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/gnokii-users
>
- Re: locking in smsd, Jan Derfinak, 2012/06/01
- Re: locking in smsd, alonso acuña, 2012/06/01
- Re: locking in smsd, Pawel Kot, 2012/06/01
- Re: locking in smsd,
alonso acuña <=
- Re: locking in smsd, Daniele Forsi, 2012/06/01
- Re: locking in smsd, Pawel Kot, 2012/06/02
- Re: locking in smsd, alonso acuña, 2012/06/03
- Re: locking in smsd, Pawel Kot, 2012/06/03
- Re: locking in smsd, alonso acuña, 2012/06/03
- Re: locking in smsd, Pawel Kot, 2012/06/03