From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Jenkins Date: Sat, 25 Oct 2008 17:57:28 +0000 Subject: Re: [PATCH] udevd: fix WAIT_FOR_SYSFS Message-Id: <49035E08.1080903@tuffmail.co.uk> List-Id: References: <4900C46A.7070501@tuffmail.co.uk> In-Reply-To: <4900C46A.7070501@tuffmail.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org Kay Sievers wrote: > On Sat, Oct 25, 2008 at 18:19, Alan Jenkins wrote: > >> Kay Sievers wrote: >> > > >>> Also the snprintf() that was used compose the buffer to pass the event >>> to a socket was _very_ expensive. We just use strlcpy() now and cache >>> the result for the next RUN+="socket:" call. >>> >> I might adapt that for udev-exec. >> >> But I think it needs a flag like envp_uptodate, no? >> > > It uses monitor_buf_len, which is reset to 0, if a property gets > changed. Is that what you mean? > > Kay > Sneaky. Yes, that's what I was looking for.