perlembed doubt
jithoosin
created: 2006-02-03 02:52:56
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.
Re: perlembed doubt
created: 2006-02-03 06:12:42
Try to install a signalhandler in your c-code. 'man sigaction' may help.
Boris

perlmonks.org content © perlmonks.org and borisz, jithoosin

prlmnks.org © 2006 edmund von der burg (eccles & toad)

v 0.03