Procházet zdrojové kódy

vccd: me, big big idiot

intirain před 4 roky
rodič
revize
14b8f63835
3 změnil soubory, kde provedl 5 přidání a 3 odebrání
  1. 1 1
      Makefile
  2. 2 2
      include/vcc/version.h
  3. 2 0
      main.c

+ 1 - 1
Makefile

@@ -1,6 +1,6 @@
 VCCD_MAJOR 		= 1
 VCCD_MINOR 		= 2
-VCCD_PATCH 		= 0
+VCCD_PATCH 		= 1
 VCCD_STR 		= -release 
 
 VCCD_COMPILE_TIME 	= $(shell date)

+ 2 - 2
include/vcc/version.h

@@ -1,2 +1,2 @@
-#define VCCD_VERSION "vccd 1.2.0 Sat Mar 19 20:47:15 CST 2022 root"
-#define VCCD_SYMVER "vccd 1.2.0 Sat Mar 19 20:47:15 CST 2022 root"
+#define VCCD_VERSION "vccd 1.2.1 Sat Mar 19 21:04:43 CST 2022 root"
+#define VCCD_SYMVER "vccd 1.2.1 Sat Mar 19 21:04:43 CST 2022 root"

+ 2 - 0
main.c

@@ -208,6 +208,8 @@ int main(int argc, const char **argv) {
 				continue;
 
 			if (fds[i].revents & POLLIN) {
+				size = read(fds[i].fd, buf, REQ_SIZE);
+				
 				if (!size) {
 					vcc_close_connection(fds[i].fd);