From c06a1626ed2af62ace659604ff8a12502dffb6c0 Mon Sep 17 00:00:00 2001 From: "roberto@sirius" Date: Sun, 14 Feb 2010 11:03:09 +0100 Subject: [PATCH] print a warning when the spooler dies --- uwsgi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/uwsgi.c b/uwsgi.c index e0c9319e..f9f0c21e 100644 --- a/uwsgi.c +++ b/uwsgi.c @@ -748,7 +748,7 @@ int main (int argc, char *argv[], char *envp[]) { case 'Q': spool_dir = optarg; if (access (spool_dir, R_OK | W_OK | X_OK)) { - perror ("access()"); + perror ("[spooler directory] access()"); exit (1); } uwsgi.master_process = 1; @@ -1652,6 +1652,7 @@ int main (int argc, char *argv[], char *envp[]) { /* reload the spooler */ if (spool_dir && uwsgi.workers[0].spooler_pid > 0) { if (diedpid == uwsgi.workers[0].spooler_pid) { + fprintf(stderr,"OOOPS the spooler is no more...trying respawn...\n"); uwsgi.workers[0].spooler_pid = spooler_start (uwsgi.serverfd, uwsgi_module); continue; }