diff --git a/core/fifo.c b/core/fifo.c index c59adb55..ddfa27aa 100644 --- a/core/fifo.c +++ b/core/fifo.c @@ -99,7 +99,7 @@ int uwsgi_master_fifo() { } int uwsgi_master_fifo_manage(int fd) { - char cmd; + unsigned char cmd; ssize_t rlen = read(fd, &cmd, 1); if (rlen < 0) { if (uwsgi_is_again()) return 0; @@ -114,11 +114,6 @@ int uwsgi_master_fifo_manage(int fd) { return 0; } - if ((int)cmd < 0) { - uwsgi_error("invalid cmd read in uwsgi_master_fifo_manage"); - exit(1); - } - if (uwsgi_fifo_table[(int) cmd]) { uwsgi_fifo_table[(int) cmd](0); }