[sheepdog] [PATCH V2]Replace malloc with xmalloc for collie

harryxiyou harryxiyou at gmail.com
Thu Feb 21 14:04:00 CET 2013


On Thu, Feb 21, 2013 at 5:33 PM, Hitoshi Mitake
<mitake.hitoshi at gmail.com> wrote:
>
> Sorry, one more point.
>
> At Thu, 21 Feb 2013 12:57:00 +0800,
> harryxiyou at gmail.com wrote:
>>
>> +void crash_handler(int signo)
>> +{
>> +     if (signo == SIGABRT)
>> +             fprintf(stderr, "collie abort.\n");
>> +     else
>> +             fprintf(stderr, "collie got unexpected signal %d.\n", signo);
>> +
>> +     exit(1);
>> +}
>> +
>
> You should use EXIT_SYSFAIL as a parameter of exit().
>

I will make a new patch, thanks ;-)



-- 
Thanks
Harry Wei



More information about the sheepdog mailing list