From 7e4341a7cd064d6e368cbcc45c3f59708e4585c9 Mon Sep 17 00:00:00 2001 From: Unbit Date: Sun, 2 Mar 2014 10:14:58 +0100 Subject: [PATCH] force on demand unix socket to 666 --- core/emperor.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/emperor.c b/core/emperor.c index 169c6ea7..3b8676b6 100644 --- a/core/emperor.c +++ b/core/emperor.c @@ -81,6 +81,12 @@ static int on_demand_bind(char *socket_name) { goto error; } + if (!is_tcp) { + if (chmod(socket_name, 0666)) { + goto error; + } + } + if (listen(fd, uwsgi.listen_queue) != 0) { goto error; }