blob: e84fd39ea10ca18490b5ccb762dd2b70365004e1 [file] [log] [blame]
Valerio Settif67ded32024-06-27 08:03:32 +02001#!/bin/bash
2
3# Copyright The Mbed TLS Contributors
4# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
5
6set -e
7
8pkill psa_server || true
9
Valerio Settif67ded32024-06-27 08:03:32 +020010# Remove all IPCs
Ronald Cron594ab412024-07-22 11:06:33 +020011# Not just ipcrm -all=msg as it is not supported on macOS.
12# Filter out header and empty lines, choosing to select based on keys being
13# output in hex.
14ipcs -q | fgrep 0x | awk '{ printf " -q " $2 }' | xargs ipcrm > /dev/null 2>&1 || true