FRET-LibAFL/scripts/kill_all_ipc.sh
Andrea Fioraldi 0b43711dc9
Fix LLMP p2p + restart bug with CentralizedEventManager (#1389)
This commit rewrites the centralized manager to use a secondary broker, as p2p communication is unreliable during frequent restarts. A centralized launcher is introduced too.
2023-08-22 15:57:50 +02:00

20 lines
419 B
Bash
Executable File

#!/bin/bash
PATH="/bin:/usr/bin"
IPCS_S=$(ipcs -s | grep -E "0x[0-9a-f]+ [0-9]+" | grep "${USER}" | cut -f2 -d" ")
IPCS_M=$(ipcs -m | grep -E "0x[0-9a-f]+ [0-9]+" | grep "${USER}" | cut -f2 -d" ")
IPCS_Q=$(ipcs -q | grep -E "0x[0-9a-f]+ [0-9]+" | grep "${USER}" | cut -f2 -d" ")
for id in $IPCS_M; do
ipcrm -m "$id";
done
for id in $IPCS_S; do
ipcrm -s "$id";
done
for id in $IPCS_Q; do
ipcrm -q "$id";
done