mirror of
https://github.com/clearlinux/uwsgi.git
synced 2026-09-06 05:31:44 +00:00
little optimization in master fifo
This commit is contained in:
+1
-6
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user