Closed funkybob closed 6 years ago
There's also a more troubling error in emperor:
core/emperor.c: In function ‘uwsgi_emperor_vassal_start’:
core/emperor.c:1356:15: error: cast between incompatible function types from ‘void (*)(struct uwsgi_instance *)’ to ‘int (*)(void *)’ [-Werror=cast-function-type]
pid = clone((int (*)(void *)) uwsgi_emperor_spawn_vassal, stack + PTHREAD_STACK_MIN, SIGCHLD | uwsgi.emperor_clone, (void *) n_ui);
^
I say troubling, because the cast is clearly invalid - uwsgi_emperor_spawn_vassal
is a void function.
Duplicate of #1819 , untested PR that fixes things here https://github.com/unbit/uwsgi/pull/1856