Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

perlembed doubt

by jithoosin (Scribe)
on Feb 03, 2006 at 07:52 UTC ( [id://527558]=perlquestion: print w/replies, xml ) Need Help??

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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://527558]
Approved by GrandFather
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (4)
As of 2024-04-20 00:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found