diff --git a/plugins/pty/pty.c b/plugins/pty/pty.c index 286f5466..35619ac6 100644 --- a/plugins/pty/pty.c +++ b/plugins/pty/pty.c @@ -190,6 +190,8 @@ static void *uwsgi_pty_loop(void *arg) { static void uwsgi_pty_init() { if (!upty.addr) return; + if (!uwsgi.master_process) return; + if (uwsgi.mywid > 0) return; char *tcp_port = strrchr(upty.addr, ':'); if (tcp_port) {