diff options
Diffstat (limited to '0028-Refine.patch')
-rw-r--r-- | 0028-Refine.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/0028-Refine.patch b/0028-Refine.patch new file mode 100644 index 0000000..b8fb739 --- /dev/null +++ b/0028-Refine.patch @@ -0,0 +1,29 @@ +From 376677f2f38b3c27b14b7a21aa021ea683a2f0e1 Mon Sep 17 00:00:00 2001 +From: sailorvii <chenw66@chinaunicom.cn> +Date: Tue, 28 Feb 2023 06:09:48 +0000 +Subject: [PATCH 28/53] Refine. + +--- + src/daemon/modules/runtime/isula/isula_rt_ops.c | 6 ++++++ + 1 file changed, 6 insertions(+) + +diff --git a/src/daemon/modules/runtime/isula/isula_rt_ops.c b/src/daemon/modules/runtime/isula/isula_rt_ops.c +index 60742d42..5d622515 100644 +--- a/src/daemon/modules/runtime/isula/isula_rt_ops.c ++++ b/src/daemon/modules/runtime/isula/isula_rt_ops.c +@@ -760,6 +760,12 @@ static int shim_create(bool fg, const char *id, const char *workdir, const char + goto realexec; + } + ++ // clear NOTIFY_SOCKET from the env to adapt runc create ++ if (unsetenv("NOTIFY_SOCKET") != 0) { ++ (void)dprintf(exec_fd[1], "%s: unset env NOTIFY_SOCKET failed %s", id, strerror(errno)); ++ exit(EXIT_FAILURE); ++ } ++ + pid = fork(); + if (pid < 0) { + (void)dprintf(exec_fd[1], "%s: fork shim-process failed %s", id, strerror(errno)); +-- +2.25.1 + |