summaryrefslogtreecommitdiff
path: root/0028-Refine.patch
blob: b8fb73981a6800a9742f7eb5c207bcc8261b75ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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