From e021bdf5ef4ebb9900f034368b4c5cac07112e33 Mon Sep 17 00:00:00 2001 From: Roberto De Ioris Date: Fri, 3 Oct 2014 10:54:35 +0200 Subject: [PATCH] exit on Emperor error --- core/uwsgi.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/uwsgi.c b/core/uwsgi.c index 9725a71e..364e2390 100644 --- a/core/uwsgi.c +++ b/core/uwsgi.c @@ -3490,7 +3490,9 @@ void uwsgi_ignition() { if (uwsgi.has_emperor && uwsgi.mywid == 1) { char byte = 5; if (write(uwsgi.emperor_fd, &byte, 1) != 1) { - uwsgi_error("write()"); + uwsgi_error("emperor-i-am-ready-to-accept/write()"); + uwsgi_log_verbose("lost communication with the Emperor, goodbye...\n"); + exit(1); } }