From: "Kay Sievers" Date: Thu, 26 Jul 2007 11:03:20 +0000 Subject: Re: [PATCH] Fix inotify to work not only once Message-Id: <3ae72650707260403x2e1e608bw55b3cdfe047047c9@mail.gmail.com> List-Id: References: <200707261114.50213.zzam@gentoo.org> In-Reply-To: <200707261114.50213.zzam@gentoo.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On 7/26/07, Matthias Schwarzott wrote: > Hi there! > > The inotify code in udevd.c contains a bug disabling inotify after first > modification catch. > > The patch entitled "handle dynamic rules created in /dev/.udev/rules.d/" > contains this: > buf = malloc(nbytes); > - if (!buf) { > + if (buf != NULL) { > err("error getting buffer for inotify, disable watching"); > > But this makes the code disable inotify if malloc is successful. Shouldnt this > be buf = NULL, or just the original !buf. Yeah, silly bug. Applied. Thanks a lot, Kay ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ 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