Util-Linux package development
 help / color / mirror / Atom feed
From: Bernhard Voelker <mail@bernhard-voelker.de>
To: Ruediger Meier <sweet_f_a@gmx.de>, Karel Zak <kzak@redhat.com>
Cc: "Dale R. Worley" <worley@alum.mit.edu>, util-linux@vger.kernel.org
Subject: Re: question about raw(1)
Date: Fri, 8 Jul 2016 02:30:27 +0200	[thread overview]
Message-ID: <577EF423.7060703@bernhard-voelker.de> (raw)
In-Reply-To: <201607080101.35139.sweet_f_a@gmx.de>

On 07/08/2016 01:01 AM, Ruediger Meier wrote:
> It's about this openSUSE init script pull request
> https://build.opensuse.org/request/show/405725
> 
> He removed the existing "sleep 2" after modprobe but I guess somebody 
> had added that sleep for a good reason in past. Of course sleep is 
> ugly, maybe "udevadm settle" would work too!? I simply don't know if 
> udev or sleep would have any affect here at all. When testing locally 
> the thing always works without any sleep. But this may not mean 
> anything (as I've learned from ul test suite issues).

maybe use timeout(1) instead of waiting the full 2 seconds?

  timeout 2 sh -c 'while [ ! -e /dev/raw/$rawdev ]; do sleep .1; done'

Still pretty ugly, but performs better. ;-)

Have a nice day,
Berny

      reply	other threads:[~2016-07-08  0:30 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-04 13:39 question about raw(1) Ruediger Meier
2016-07-05 18:32 ` Dale R. Worley
2016-07-07 20:27   ` Karel Zak
2016-07-07 23:01     ` Ruediger Meier
2016-07-08  0:30       ` Bernhard Voelker [this message]

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=577EF423.7060703@bernhard-voelker.de \
    --to=mail@bernhard-voelker.de \
    --cc=kzak@redhat.com \
    --cc=sweet_f_a@gmx.de \
    --cc=util-linux@vger.kernel.org \
    --cc=worley@alum.mit.edu \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox