Re: [PATCH] mm: compaction: fix echo 1 > compact_memory return error issue

From: Michal Nazarewicz
Date: Sun Jan 06 2013 - 11:01:54 EST


On Sun, Jan 06 2013, Simon Jeons wrote:
>> >write(1, "1\n", 2) = 3

>> Here it tells it.

> On Sun, 2013-01-06 at 08:48 +0000, Liu Hui-R64343 wrote:
> Why this value trouble you?

Because write() is supposed to return the number of bytes successfully
written.

--
Best regards, _ _
.o. | Liege of Serenely Enlightened Majesty of o' \,=./ `o
..o | Computer Science, MichaÅ âmina86â Nazarewicz (o o)
ooo +----<email/xmpp: mpn@xxxxxxxxxx>--------------ooO--(_)--Ooo--

Attachment: pgp00000.pgp
Description: PGP signature