mirror of
https://github.com/Ascend/ascend-docker-runtime.git
synced 2025-10-12 03:21:58 +08:00
Match-id-bb59ee5d1a8d5afaa75ac2bb07db32c8a3a07b1d
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user