From 2917de3e76dd7cd989183a1c5ce3ff2c893a7f3c 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 52a8edff..3539a281 100644 --- a/core/uwsgi.c +++ b/core/uwsgi.c @@ -3432,7 +3432,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); } }