From: Olivier Blin <oblin@mandriva.com>
To: linux-hotplug@vger.kernel.org
Subject: Re: [RFC] coldplug - emit hotplug events from sysfs
Date: Mon, 03 Oct 2005 17:44:39 +0000 [thread overview]
Message-ID: <m3mzlqsdfc.fsf@mandriva.com> (raw)
In-Reply-To: <20051001124943.GA26076@vrfy.org>
Scott James Remnant <scott@ubuntu.com> writes:
> On Mon, 2005-10-03 at 17:29 +0200, Kay Sievers wrote:
>
>> I don't see how to use a udev rules to continue the init script which
>> depends on the tty's to be around after that. Care to explain?
>>
> e.g. for each of /sys/class/t*/*, write the name into a file
> (/tmp/waiting) and write to the uevent... in a udev rule for events,
> remove the line from the /tmp/waiting file.
>
> Sleep until the /tmp/waiting file is zero bytes in size.
>
>
> Ok, that's just as hacky as grovelling around in ps I guess, but at
> least it has the advantage that there's no possibility of no udev
> processes having been started by the next line of shell - which there is
> with your example.
>
> There's almost certainly a more elegant way, but basically mark the
> events you're waiting for and wait for them all to come back.
We could have a lock directory, in which a lock file would be added for
each event (using the full path with '/' replaced by '%' for example).
This lock file would be removed once udev is done processing the event.
But is it easy to remove a lock file when a PROGRAM or RUN rule is
used? Maybe by catching signals of this program.
--
Olivier Blin
Mandriva
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
next prev parent reply other threads:[~2005-10-03 17:44 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-01 12:49 [RFC] coldplug - emit hotplug events from sysfs Kay Sievers
2005-10-03 10:03 ` Scott James Remnant
2005-10-03 10:29 ` Olivier Blin
2005-10-03 12:21 ` Kay Sievers
2005-10-03 13:00 ` Olivier Blin
2005-10-03 15:21 ` Scott James Remnant
2005-10-03 15:29 ` Kay Sievers
2005-10-03 16:22 ` Greg KH
2005-10-03 16:31 ` Scott James Remnant
2005-10-03 17:44 ` Olivier Blin [this message]
2005-10-03 17:49 ` Bill Nottingham
2005-10-03 17:59 ` Olivier Blin
2005-10-04 21:00 ` Greg KH
2005-10-28 20:12 ` Scott James Remnant
2005-10-28 20:14 ` Greg KH
2005-10-29 2:29 ` Alexander E. Patrakov
2005-10-29 2:43 ` Greg KH
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=m3mzlqsdfc.fsf@mandriva.com \
--to=oblin@mandriva.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).