http://qs1969.pair.com?node_id=527558

jithoosin has asked for the wisdom of the Perl Monks concerning the following question:

HI monks,
I am calling perlsubroutines from C. This is done using "call_pv" function. There subroutines which are called are in different files( packages) returns values back to C file. But if some thing like a seg fault occurs in perl file it causes the entire program to terminate. Could any of the esteemed monks tell a good way by which the C program should continue (no need to worry about returned values) even if the perl file cause seg fault. I referred to perldoc ,but was unable to find an answer
Thanks
Kiran.

Replies are listed 'Best First'.
Re: perlembed doubt
by borisz (Canon) on Feb 03, 2006 at 11:12 UTC
    Try to install a signalhandler in your c-code. 'man sigaction' may help.
    Boris