Explorar el Código

Stop sharing during restart

Bryan Drewery hace 10 años
padre
commit
046b8903d8
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      src/misc.cc

+ 3 - 0
src/misc.cc

@@ -789,6 +789,9 @@ restart(int idx)
     botnet_send_bye(reason);
   }
 
+  /* Stop sharing to prevent writing LASTON to lostdcc() DCC_BOT sockets. */
+  noshare = 1;
+
   /* kill all connections except STDOUT/server */
   for (fd = 0; fd < dcc_total; fd++) {
     if (dcc[fd].type && dcc[fd].type != &SERVER_SOCKET && dcc[fd].sock != STDOUT) {