lkml.org 
[lkml]   [2012]   [Apr]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: malloc() failure counter
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



\
 
 \ /
  Last update: 2012-04-18 22:37    [W:0.054 / U:0.060 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site