little optimization in master fifo

This commit is contained in:
Unbit
2013-10-28 22:14:50 +01:00
parent 3757e5a8bb
commit 718e198ac8
+1 -6
View File
@@ -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);
}