[sheepdog] [PATCH]Check malloc error for collie

Hitoshi Mitake mitake.hitoshi at gmail.com
Wed Feb 20 02:52:44 CET 2013


At Tue, 19 Feb 2013 20:17:15 +0800,
harryxiyou wrote:
> 
> On Mon, Feb 18, 2013 at 11:16 AM, MORITA Kazutaka
> <morita.kazutaka at lab.ntt.co.jp> wrote:
> > At Mon, 18 Feb 2013 10:55:05 +0900,
> > Hitoshi Mitake wrote:
> >>
> >> Or should collie catch SIGABRT and call exit() in the handler?
> >
> > This sounds better to me because it also enables us to use panic and
> > assert in collie sources.
> >
> 
> I am not clear about your suggestions, which how should i correct this patch
> for a v2 one?
> 

This is my understanding:
1. replacing malloc() with xmalloc()
2. register signal handler for SIGABRT, and let the handler call
   exit(EXIT_SYSFAIL)

Thanks,
Hitoshi



More information about the sheepdog mailing list