다음 오류가 발생합니다.
* glibc가 감지되었습니다 */usr/sbin/tshark: 이중 해제 또는 손상
아래와 같이 하는 동안 왜 그런지 아시나요?
#!/bin/bash
trap 'my_exit; exit' SIGINT SIGQUIT
count=0
/usr/sbin/tshark -i bond1.1 -f "port 1111" -w /test/test_1.pcap > /dev/null 2>&1 &
PID1=$!
/usr/sbin/tshark -i bond1.6 -f "port 8080" -w /test/test_2.pcap > /dev/null 2>&1 &
PID2=$!
function my_exit()
{
kill $PID1
kill $PID2
}
while :
do
sleep 1
count=$(expr $count + 1)
done
그런데, 하나를 실행 tshark
하고 죽이려고 하면 잘 작동합니다.