lxc/0041-return-1-when-_lxc_start-fails.patch

26 lines
656 B
Diff
Raw Normal View History

2019-12-25 15:57:42 +08:00
From 6153c99f9dad1499a5ac9b64def6cbb0f7aeeadc Mon Sep 17 00:00:00 2001
2019-09-30 11:03:07 -04:00
From: LiFeng <lifeng68@huawei.com>
Date: Wed, 16 Jan 2019 05:53:36 -0500
2019-12-25 15:57:42 +08:00
Subject: [PATCH 041/131] return -1 when _lxc_start fails
2019-09-30 11:03:07 -04:00
Signed-off-by: LiFeng <lifeng68@huawei.com>
---
src/lxc/start.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/lxc/start.c b/src/lxc/start.c
2019-12-25 15:57:42 +08:00
index 3e6854fa..7bbcb009 100644
2019-09-30 11:03:07 -04:00
--- a/src/lxc/start.c
+++ b/src/lxc/start.c
@@ -2175,6 +2175,7 @@ int __lxc_start(const char *name, struct lxc_handler *handler,
if (!handler->init_died && handler->pid > 0) {
ERROR("Child process is not killed");
+ ret = -1;
goto out_abort;
}
--
2019-12-25 15:57:42 +08:00
2.23.0
2019-09-30 11:03:07 -04:00