All of lore.kernel.org
 help / color / mirror / Atom feed
From: Martin Pitt <martin.pitt@ubuntu.com>
To: linux-hotplug@vger.kernel.org
Subject: Re: udev: Why non-blocking poll() with blocking recvmsg()?
Date: Mon, 19 Aug 2013 12:15:59 +0000	[thread overview]
Message-ID: <20130819121559.GG3077@piware.de> (raw)
In-Reply-To: <201308192039.ACD60413.HFOQSFtLFMOJVO@I-love.SAKURA.ne.jp>

Hello Tetsuo,

Tetsuo Handa [2013-08-19 20:39 +0900]:
> I'm experiencing a boot failure problem with wait-for-root utility in Ubuntu 12.04.

Note that this is an Ubuntu specific program.

> Although wait-for-root uses blocking socket, udev_monitor_receive_device() sometimes
> immediately returns NULL.

It *assumed* a blocking socket, but didn't make sure that it actually
was. Originally libudev used blocking sockets, but at some point [1]
this was switched to non-blocking by default, and wait-for-root needed
to be adjusted to that. Please see https://launchpad.net/bugs/1154813,
it's fixed in newer Ubuntu releases.

[1] http://git.kernel.org/cgit/linux/hotplug/udev.git/commit/?id\x13d83b8

Martin
-- 
Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)

  reply	other threads:[~2013-08-19 12:15 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-19 11:39 udev: Why non-blocking poll() with blocking recvmsg()? Tetsuo Handa
2013-08-19 12:15 ` Martin Pitt [this message]
2013-08-19 12:37 ` Tetsuo Handa
2013-08-19 12:45 ` Kay Sievers
2013-08-19 13:24 ` Tetsuo Handa
2013-08-23 12:48 ` Tetsuo Handa

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=20130819121559.GG3077@piware.de \
    --to=martin.pitt@ubuntu.com \
    --cc=linux-hotplug@vger.kernel.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.