bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: malloc failing with EAGAIN


From: Paul Eggert
Subject: Re: malloc failing with EAGAIN
Date: Sun, 1 May 2022 15:17:37 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1

On 5/1/22 13:28, Bruno Haible wrote:
I would argue that glibc should use a different errno value in this case.

Either errno value makes sense to me. If you keep doing a non-blocking read on a pipe that only you can write to you'll keep getting EAGAIN, which has the same feel as a bug where you grab a lock and then keep doing a malloc that won't work until you release the lock.

No big deal either way of course.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]