Re: malloc() failure counter

From: H. Peter Anvin
Date: Tue Apr 17 2012 - 19:20:04 EST


On 04/17/2012 03:02 PM, James Courtier-Dutton wrote:
> Hi,
>
> If I have a user application that tries a malloc() or a calloc() call,
> and this call fails, is there any way to report this to a global stats
> counter, like the ones in /proc/meminfo
> Is there any way to find out that a malloc call made by a user program failed?
>

No, because that is an internal thing to glibc.

-hpa

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/