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

Re: LD_PRELOAD without shell

by Corion (Pope)
on Apr 22, 2013 at 11:35 UTC ( #1029847=note: print w/ replies, xml ) Need Help??


in reply to LD_PRELOAD without shell

Have you looked at %ENV? In what way did it fail to work?

As an alternative, have you tried

LD_PRELOAD=./blah.so exec ./progname --option1 --option2

... to keep the "real" PID?


Comment on Re: LD_PRELOAD without shell
Download Code
Replies are listed 'Best First'.
Re^2: LD_PRELOAD without shell
by hel1os (Initiate) on Apr 22, 2013 at 12:37 UTC

    is %ENV global for perl and another progs running from it?

    but exec works fine, thanks

      From the linked documentation:

      Setting a value in ENV changes the environment for any child processes you subsequently fork() off.

      I'm sure it could be less specific on fork(), but the part about "any child processes" is still true.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1029847]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2016-02-10 07:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?





    Results (335 votes), past polls