export build date

This commit is contained in:
roberto@sirius
2011-03-03 14:06:29 +01:00
parent c04e339034
commit 62d2b97e17
3 changed files with 7 additions and 1 deletions
+3
View File
@@ -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()");
+1 -1
View File
@@ -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");
+3
View File
@@ -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':