[sheepdog] [PATCH v2] sheep, logger: select log formatter before log_init()

Liu Yuan namei.unix at gmail.com
Fri Feb 1 08:39:13 CET 2013

On 02/01/2013 02:59 PM, Hitoshi Mitake wrote:
> sd_printf() series can be called before calling log_init(). In such a
> case, segmentation faults can be rised because format in logger.c is
> e.g. init_path() calls sd_eprintf() before log_init() when it fails
> creating directory for sheep process.
> This patch adds new function select_log_formatter(). This is only for
> selecting formatter and should be called before sd_printf() series.
> After applying this patch, sheep calls this function in the loop for
> parsing command line options.

Applied, thanks.


More information about the sheepdog mailing list