Welcome! Log In Create A New Profile

Advanced

Re: Question about the env

November 12, 2010 02:48PM
On Fri, Nov 12, 2010 at 10:18:54PM +0300, Igor Sysoev wrote:

> On Fri, Nov 12, 2010 at 02:09:11AM -0500, speedfirst wrote:
>
> > Hey, I noticed that the "env" directive in the main module is not an
> > equivalent of "export" in bash or "putenv" in C stdlib. The variables
> > defined by "env" seems only can be used by the embeded Perl module,
> > right?
>
> Not only.
> For example, "env OPENSSL_ALLOW_PROXY_CERTS=1;" controls OpenSSL.
> "env MALLOC_OPTIONS;" controls FreeBSD malloc().

However, setting FreeBSD MALLOC_OPTIONS using "env" is useless, because
malloc() analyzes MALLOC_OPTIONS on the very start before event main()
is called. Nevertheless "env MALLOC_OPTIONS;" is useful during online
upgrade: a new nginx is run with inherited MALLOC_OPTIONS.


--
Igor Sysoev
http://sysoev.ru/en/

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Question about the env

speedfirst November 12, 2010 02:09AM

Re: Question about the env

Igor Sysoev November 12, 2010 02:26PM

Re: Question about the env

Igor Sysoev November 12, 2010 02:48PM

Re: Question about the env

speedfirst November 13, 2010 06:51AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 158
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready