Valerio Setti | f67ded3 | 2024-06-27 08:03:32 +0200 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
| 3 | # Copyright The Mbed TLS Contributors |
| 4 | # SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later |
| 5 | |
| 6 | set -e |
| 7 | |
| 8 | pkill psa_server || true |
| 9 | |
Valerio Setti | 2016d66 | 2024-08-05 15:57:43 +0200 | [diff] [blame] | 10 | # Remove temporary files |
| 11 | rm -f psa_notify_* |
| 12 | |
Valerio Setti | f67ded3 | 2024-06-27 08:03:32 +0200 | [diff] [blame] | 13 | # Remove all IPCs |
Ronald Cron | 594ab41 | 2024-07-22 11:06:33 +0200 | [diff] [blame] | 14 | # Not just ipcrm -all=msg as it is not supported on macOS. |
| 15 | # Filter out header and empty lines, choosing to select based on keys being |
| 16 | # output in hex. |
| 17 | ipcs -q | fgrep 0x | awk '{ printf " -q " $2 }' | xargs ipcrm > /dev/null 2>&1 || true |