mirror of
https://github.com/clearlinux/uwsgi.git
synced 2026-09-08 06:31:58 +00:00
fixed mule socketpair
This commit is contained in:
@@ -16,11 +16,6 @@ void uwsgi_mule(int id) {
|
||||
|
||||
int i;
|
||||
|
||||
// create the socket pipe
|
||||
if (socketpair(AF_UNIX, SOCK_STREAM, 0, uwsgi.mules[id-1].signal_pipe)) {
|
||||
uwsgi_error("socketpair()\n");
|
||||
}
|
||||
|
||||
pid_t pid = fork();
|
||||
if (pid == 0) {
|
||||
uwsgi.muleid = id;
|
||||
|
||||
@@ -2169,6 +2169,11 @@ skipzero:
|
||||
}
|
||||
|
||||
for(i=0;i<uwsgi.mules_cnt;i++) {
|
||||
// create the socket pipe
|
||||
if (socketpair(AF_UNIX, SOCK_STREAM, 0, uwsgi.mules[i].signal_pipe)) {
|
||||
uwsgi_error("socketpair()\n");
|
||||
}
|
||||
|
||||
if (socketpair(AF_UNIX, SOCK_DGRAM, 0, uwsgi.mules[i].queue_pipe)) {
|
||||
uwsgi_error("socketpair()");
|
||||
exit(1);
|
||||
|
||||
Reference in New Issue
Block a user