[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4AF2FF5A.6050205@gmail.com>
Date: Thu, 05 Nov 2009 17:37:46 +0100
From: Eric Dumazet <eric.dumazet@...il.com>
To: Eric Dumazet <eric.dumazet@...il.com>,
linux-kernel@...r.kernel.org, mk@...all.com
Subject: Re: [PATCH] pipe: don't block after data has been written
Max Kellermann a écrit :
> On 2009/11/05 17:27, Eric Dumazet <eric.dumazet@...il.com> wrote:
>> Your patch breaks many programs, that dont use poll()/select()
>>
>> char result[1000000];
>> main()
>> {
>> computethings();
>> write(1, buffer, 1000000);
>> }
>
> Your code does not check the return value of write(). This is a bug.
>
Welcome to real world.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists