diff --git a/core/utils.c b/core/utils.c index 48b42645..5ad3814d 100644 --- a/core/utils.c +++ b/core/utils.c @@ -3979,7 +3979,7 @@ void uwsgi_set_processname(char *name) { // end with \0 memset(uwsgi.orig_argv[0] + amount + 1 + (uwsgi.max_procname - (amount)), '\0', 1); -#elif defined(__FreeBSD__) +#elif defined(__FreeBSD__) || defined(__NetBSD__) if (uwsgi.procname_prefix) { if (!uwsgi.procname_append) { setproctitle("-%s%s", uwsgi.procname_prefix, name); diff --git a/uwsgiconfig.py b/uwsgiconfig.py index 9527e922..2cd35dbd 100644 --- a/uwsgiconfig.py +++ b/uwsgiconfig.py @@ -1,6 +1,6 @@ # uWSGI build system -uwsgi_version = '1.3' +uwsgi_version = '1.3.1-dev' import os import re @@ -87,9 +87,9 @@ def uniq_warnings(elements): return new_elements -if uwsgi_version.endswith('-dev') and os.path.exists('%s/.hg' % os.path.dirname(os.path.abspath( __file__ ))): +if uwsgi_version.endswith('-dev') and os.path.exists('%s/.git' % os.path.dirname(os.path.abspath( __file__ ))): try: - uwsgi_version += spcall('hg tip --template "-{rev}"') + uwsgi_version += spcall('git rev-parse --short HEAD') except: pass