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 <samir.talwar@digitalasset.com>

Co-authored-by: Samir Talwar <samir.talwar@digitalasset.com>
This commit is contained in:
Moritz Kiefer 2020-08-25 10:39:11 +02:00 committed by GitHub
parent 0919221d04
commit c3d758a2d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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