Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

perlembed doubt

by jithoosin (Scribe)
on Feb 03, 2006 at 07:52 UTC ( #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? | Other CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2023-02-06 06:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer not to run the latest version of Perl because:







    Results (33 votes). Check out past polls.

    Notices?