[sheepdog] [PATCH V2]Replace malloc with xmalloc for collie
Hitoshi Mitake
mitake.hitoshi at gmail.com
Thu Feb 21 10:33:02 CET 2013
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().
Thanks,
Hitoshi
More information about the sheepdog
mailing list