in reply to perlembed doubt

Try to install a signalhandler in your c-code. 'man sigaction' may help.
Boris