Okay got you. I wrote a small script to respawn gdb everytime a fax is received, this also can mitigate against unexpected segfault.
#!/bin/bash
cd /root
while [ 0 ] ; do
if ! ps ax | grep [g]db > /dev/null; then
echo "Could not detect gdb starting a new process"
killall faxgetty > /dev/null 2>&1
./gdb-wrapper.sh /usr/sbin/faxgetty /dev/ttyS0
fi
sleep 10
Okay got you. I wrote a small script to respawn gdb everytime a fax is received, this also can mitigate against unexpected segfault.
#!/bin/bash
cd /root
while [ 0 ] ; do
if ! ps ax | grep [g]db > /dev/null; then
echo "Could not detect gdb starting a new process"
killall faxgetty > /dev/null 2>&1
./gdb-wrapper.sh /usr/sbin/faxgetty /dev/ttyS0
fi
sleep 10
done
Now just to wait.