By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,785 Members | 1,253 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,785 IT Pros & Developers. It's quick & easy.

PL/Perl: can you tell that your code is inside a function?

P: n/a
We're trying to eliminate possible problems with our PL/Perl code base.
Some of the functions use locally authored modules that make database
connections; thus, we have PL/Perl code running in a database backend
that is itself making a connection to another backend. The only problem
we seem to be having is with some change occuring to a signal handler
(SIGALRM to be specific).

What I'd like to be able to do is to change the low-level module to do
something like ...

unless (running_inside_pl_perl) {
local($SIG{ALRM});
...
}

How can I test to see if the code is indeed running within PL/Perl?

--
Jeff Boes vox 269.226.9550 ext 24
Database Engineer fax 269.349.9076
Nexcerpt, Inc. http://www.nexcerpt.com
...Nexcerpt... Extend your Expertise

Jul 19 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.