SPUG: Perl embedded in threaded app
jshaffer at chronology.com
Fri Jul 21 14:43:02 CDT 2000
Is anyone else using an embedded Perl interpreter in a threaded application?
We have such a set-up with embedded perl; this Perl is NOT threaded,
although the application that calls it is threaded. Everything seemed fine
and any embedded Perl was happily parsed and executed...until the fatal
moment when someone put a system("data"); line in the embedded Perl.
Perl does parse and execute this, but it appears to destroy the threads in
the main app in the process. The same is true for exec or 'backtick' calls.
We considered compiling Perl using threads, but are not sure that this is
the problem. In addition, there are big NOT FOR PRODUCTION
disclaimers all over the thread readme and hints.
We decided to try a non-threaded version of our app. After a few days of
rearranging, we have created such a beast and indeed all is happy again...
except that we lose some future options since we don't have a threaded
Anyone have suggestions or insights into what the story is with Perl in
threaded apps is invited to send mail my way!
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
POST TO: spug-list at pm.org PROBLEMS: owner-spug-list at pm.org
Subscriptions; Email to majordomo at pm.org: ACTION LIST EMAIL
Replace ACTION by subscribe or unsubscribe, EMAIL by your Email-address
For full traffic, use spug-list for LIST ; otherwise use spug-list-digest
Seattle Perl Users Group (SPUG) Home Page: http://www.halcyon.com/spug/
More information about the spug-list