report corrent worker id in cheap mode

This commit is contained in:
roberto@mrspurr
2011-06-15 07:04:07 +02:00
parent 71fa3ab3af
commit ffb8752190
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -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);
+1
View File
@@ -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);