From c3d758a2d35d61026a8ec863890875502769c626 Mon Sep 17 00:00:00 2001 From: Moritz Kiefer Date: Tue, 25 Aug 2020 10:39:11 +0200 Subject: [PATCH] Ignore failed ipcrm calls (#7218) * Ignore failed ipcrm calls changelog_begin changelog_end * Update ci/clear-shared-segments-macos.yml Co-authored-by: Samir Talwar Co-authored-by: Samir Talwar --- ci/clear-shared-segments-macos.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ci/clear-shared-segments-macos.yml b/ci/clear-shared-segments-macos.yml index f31c0c6b7b..a5bd87119c 100644 --- a/ci/clear-shared-segments-macos.yml +++ b/ci/clear-shared-segments-macos.yml @@ -34,6 +34,8 @@ steps: # which is what ipcrm expects as its arguments. After the table, ipcs -m # adds an extra blank line, hence the extra sed at the end. for shmid in $(ipcs -m | sed 1,3d | awk '{print $2}' | sed '$d'); do - ipcrm -m $shmid + # Some memory segments cannot be removed and fail with "invalid argument". + # We just ignore those for now instead of failing CI. + ipcrm -m $shmid || true done name: clear_shm