From ffb8752190c805bad4388331b27df93023626370 Mon Sep 17 00:00:00 2001 From: "roberto@mrspurr" Date: Wed, 15 Jun 2011 07:04:07 +0200 Subject: [PATCH] report corrent worker id in cheap mode --- master_utils.c | 2 +- uwsgi.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/master_utils.c b/master_utils.c index b39c57b5..78b07174 100644 --- a/master_utils.c +++ b/master_utils.c @@ -58,7 +58,7 @@ int uwsgi_respawn_worker(int wid) { } else { if (respawns > 0) { - uwsgi_log("Respawned uWSGI worker %d (new pid: %d)\n", uwsgi.mywid, (int) pid); + uwsgi_log("Respawned uWSGI worker %d (new pid: %d)\n", wid, (int) pid); } else { uwsgi_log("spawned uWSGI worker %d (pid: %d, cores: %d)\n", wid, pid, uwsgi.cores); diff --git a/uwsgi.c b/uwsgi.c index 61895518..6432d418 100644 --- a/uwsgi.c +++ b/uwsgi.c @@ -746,6 +746,7 @@ int main(int argc, char *argv[], char *envp[]) { char *magic_table[0xff]; char *optname; + uwsgi_log("size = %d\n", sizeof(struct cmsghdr) + CMSG_SPACE(sizeof(int))); signal(SIGHUP, SIG_IGN); signal(SIGTERM, SIG_IGN);