Comment 89 for bug 600219

Revision history for this message
yaztromo (tromo) wrote :

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.