Re: Why can't I LD_PRELOAD __assert_fail ?

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

 



On 18 February 2011 04:25, Jeffrey Walton wrote:
> I could never understand
> why POSIX specified that a program should abort after an assert
> (http://pubs.opengroup.org/onlinepubs/009695399/functions/assert.html).

POSIX probably says that because C says that, and every implementation
does that, and standardising anything different would have been
incompatible with actual implementations.

That's what assert does, it aborts the program if the assertion fails.

If you want a different behaviour, don't use assert.


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux