force on demand unix socket to 666

This commit is contained in:
Unbit
2014-03-02 10:14:58 +01:00
parent 8c118c8f62
commit 7e4341a7cd
+6
View File
@@ -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;
}