提交 7a24a609 编写于 作者: jia zhang's avatar jia zhang

rune/libcontainer: Clean up enclave exit path on error

The final error message will be sent back to the parent so there is
no need to log it.
Signed-off-by: jia zhang's avatarJia Zhang <zhang.jia@linux.alibaba.com>
上级 e1bdcd72
......@@ -106,8 +106,7 @@ func (l *linuxSetnsInit) Init() error {
exitCode, err := libenclave.StartInitialization(l.config.Args, cfg)
if err != nil {
logrus.Fatal(err)
os.Exit(1)
return err
}
logrus.Debugf("enclave payload exit code: %d", exitCode)
os.Exit(int(exitCode))
......
......@@ -197,8 +197,7 @@ func (l *linuxStandardInit) Init() error {
exitCode, err := libenclave.StartInitialization(l.config.Args, cfg)
if err != nil {
logrus.Fatal(err)
os.Exit(1)
return err
}
logrus.Debugf("init enclave runtime exit code: %d", exitCode)
os.Exit(int(exitCode))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册