hel1os has asked for the wisdom of the Perl Monks concerning the following question:
It's necessary to start it without shell(i need real PID) But I need to preload some lib. Adding "LD_PRELOAD" to "./progname" don't work without using another form of open, which run shell:$pid = open2($co, $ci, "./progname", "--option1", "--option2", "$param +");
Is there a way to preload lib without running shell?$pid = open2($co, $ci, "LD_PRELOAD=./blah.so ./progname --option1 --op +tion2 $param");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: LD_PRELOAD without shell
by Corion (Patriarch) on Apr 22, 2013 at 11:35 UTC | |
by hel1os (Initiate) on Apr 22, 2013 at 12:37 UTC | |
by Corion (Patriarch) on Apr 22, 2013 at 12:43 UTC |