[sheepdog] [PATCH]Check malloc error for collie

harryxiyou harryxiyou at gmail.com
Wed Feb 20 04:03:58 CET 2013


On Wed, Feb 20, 2013 at 9:52 AM, Hitoshi Mitake
<mitake.hitoshi at gmail.com> wrote:
[...]
> This is my understanding:
> 1. replacing malloc() with xmalloc()

Why should we use xmalloc() instead?


> 2. register signal handler for SIGABRT, and let the handler call
>    exit(EXIT_SYSFAIL)

I am not sure how & where to register this signal handler for SIGABRT?




-- 
Thanks
Harry Wei



More information about the sheepdog mailing list