Explorar o código

[Feat] [1.0.0] Add vmnetproxy to getty

xcbosa mbp16 hai 2 meses
pai
achega
66af602e24
Modificáronse 1 ficheiros con 1 adicións e 3 borrados
  1. 1 3
      post_sbin/getty.c

+ 1 - 3
post_sbin/getty.c

@@ -1424,10 +1424,8 @@ void *message_handler_thread(void *arg) {
         // 读取消息
         // 读取消息
         int bytes_read = read_message(proxy_fd, buffer, MAX_BUFFER_SIZE, 1); // 1表示client
         int bytes_read = read_message(proxy_fd, buffer, MAX_BUFFER_SIZE, 1); // 1表示client
 
 
-        log_message("[Debug] Read %d bytes", bytes_read);
-
         if (bytes_read <= 0) {
         if (bytes_read <= 0) {
-            usleep(100); // 如果没有消息,等待一段时间(100微秒
+            usleep(1000 * 10); // 如果没有消息,等待一段时间(10 ms)
             continue;
             continue;
         }
         }