All of lore.kernel.org
 help / color / mirror / Atom feed
From: John Ernberg <john.ernberg@actia.se>
To: ofono@ofono.org
Subject: Udevng plugin seems to fail sometimes?
Date: Thu, 12 Nov 2015 09:39:13 +0000	[thread overview]
Message-ID: <56445E49.4030607@actia.se> (raw)

[-- Attachment #1: Type: text/plain, Size: 1312 bytes --]

Hi,

I am using oFono in an embedded environment, and I seem to have 
encountered a problem with the udevng plugin. It seems that the 
udev_monitor sometimes fails to init, so when the modem in the 
environment has started, oFono cannot find it. I can see the modem with 
'lsusb' if I log in to the embedded system, but when I list the modems 
in oFono I get an empty list.

I have verified that when this happens udev is running in the system, 
and that a sane file descriptor is received when creating the IOChannel 
used for the monitor. Yet, the channel is closed almost immediately. My 
best guess is that udev sends some sort of HUP.

oFono is started automatically by systemd, but in a much later target 
than udev.

The issue appears too sporadically to be able to debug this properly, so 
I am wondering if anyone else has seen this issue?

While trying to understand myself exactly what is going on I haven't 
managed to come across anything on google, or in other programs' source 
code, suggesting that the setup code for the monitor is doing something 
wrong. So, I also wonder if anyone has any suggestions on what kind of 
traces I shall try to print to gain an understanding of what is happening?

Thank you in advance for any assistance.

Best regards // John Ernberg

                 reply	other threads:[~2015-11-12  9:39 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=56445E49.4030607@actia.se \
    --to=john.ernberg@actia.se \
    --cc=ofono@ofono.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.