[CRIU] [PATCH 0/2] add log_init_at and use it instead of log_init when processing cmd-line options
Pavel Emelyanov
xemul at parallels.com
Mon Nov 18 23:18:57 PST 2013
On 11/19/2013 05:15 AM, Ruslan Kuprieiev wrote:
> After set of patches which add --work-dir option we have an issue: logs are created relatively
> to current dir and not relatively to images dir(which is work dir, when --work-dir is not given).
> To solve this lets use log_init_at and pass work dir to it.
>
> Ruslan Kuprieiev (2):
> log: add log_init_at and define log_init as a macro
> crtools: use log_init_at instead of log_init
>
> crtools.c | 2 +-
> include/log.h | 3 ++-
> log.c | 13 ++++++++++---
> 3 files changed, 13 insertions(+), 5 deletions(-)
>
Why not just move log_init after chdir()? And chdir() in the very beginning of everything.
More information about the CRIU
mailing list