On Tue, Jan 18, 2011 at 8:13 AM, Laurent Bonnaud
<[email protected]> wrote:
> Hi,
>
> I also experienced this bug several times on a laptop that sometimes
> fails to resume from suspend and with an ext4 filesystem.
>
> Here is a patch that should fix the problem:
>
> --- urec.c~ 2009-01-02 00:46:00.000000000 +0100
> +++ urec.c 2011-01-18 08:07:28.886203152 +0100
> @@ -263,6 +263,7 @@
> if ((max > 0) && (++i >= max)) break;
> }
> }
> + fflush(f);
> fclose(f);
DESCRIPTION
The fclose() function flushes the stream pointed to by fp (writing any
buffered output data using fflush(3)) and closes the underlying file
descriptor.
--
Thibaut VARENE
http://www.parisc-linux.org/~varenet/
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]