Match-id-bb59ee5d1a8d5afaa75ac2bb07db32c8a3a07b1d

This commit is contained in:
BianTanggui
2020-10-26 11:04:50 +08:00
parent 9d49338ed6
commit 62c2d9a004
11 changed files with 23 additions and 143 deletions

View File

@@ -18,7 +18,6 @@
#include "ns.h"
#include "mount.h"
#include "cgrp.h"
#include "logging.h"
#include "options.h"
#define DECIMAL 10
@@ -315,22 +314,13 @@ int Process(int argc, char **argv)
}
ParseRuntimeOptions(args.options);
SetPidForLog(args.pid);
ret = OpenLog(DEFAULT_LOG_FILE);
if (ret < 0) {
LOG_ERROR("error: failed to open log file %s.", DEFAULT_LOG_FILE);
return -1;
}
ret = SetupContainer(&args);
if (ret < 0) {
CloseLog();
LOG_ERROR("error: failed to setup container.");
return ret;
}
CloseLog();
return 0;
}