diff --git a/emperor.c b/emperor.c index 9724f4e1..00b03c16 100644 --- a/emperor.c +++ b/emperor.c @@ -121,6 +121,9 @@ void emperor_add(char *name, time_t born) { return; } else { + + unsetenv("UWSGI_RELOADS"); + uef = uwsgi_num2str(n_ui->pipe[1]); if (setenv("UWSGI_EMPEROR_FD", uef, 1)) { uwsgi_error("setenv()"); diff --git a/uwsgi.c b/uwsgi.c index 05537216..8477a393 100644 --- a/uwsgi.c +++ b/uwsgi.c @@ -772,7 +772,7 @@ options_parsed: uwsgi_log("***\n*** You are running a DEBUG version of uWSGI, plese disable DEBUG in uwsgiconfig.py and recompile it ***\n***\n"); #endif - uwsgi_log("compiled with version: %s\n", __VERSION__); + uwsgi_log("compiled with version: %s on %s\n", __VERSION__, UWSGI_BUILD_DATE); #ifdef __BIG_ENDIAN__ uwsgi_log("*** big endian arch detected ***\n"); diff --git a/uwsgiconfig.py b/uwsgiconfig.py index ae6b96b6..47e17a32 100644 --- a/uwsgiconfig.py +++ b/uwsgiconfig.py @@ -2,6 +2,7 @@ import os import re +import time uwsgi_os = os.uname()[0] uwsgi_os_k = re.split('[-+]', os.uname()[2])[0] uwsgi_os_v = os.uname()[3] @@ -208,6 +209,8 @@ class uConf(object): sys.exit(1) def get_gcll(self): + + self.cflags.append('-DUWSGI_BUILD_DATE="\\"%s\\""' % time.strftime("%d %B %Y %H:%M:%S")) kvm_list = ['FreeBSD', 'OpenBSD', 'NetBSD', 'DragonFly'] if uwsgi_os == 'SunOS':