Explorar el Código

* Don't unlink() pidfile on fatal()

svn: 1393
Bryan Drewery hace 21 años
padre
commit
ad08fcb93e
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  1. 3 3
      src/main.c

+ 3 - 3
src/main.c

@@ -166,8 +166,8 @@ void fatal(const char *s, int recoverable)
       killsock(dcc[i].sock);
       killsock(dcc[i].sock);
 
 
   if (!recoverable) {
   if (!recoverable) {
-    if (conf.bot && conf.bot->pid_file)
-      unlink(conf.bot->pid_file);
+//    if (conf.bot && conf.bot->pid_file)
+//      unlink(conf.bot->pid_file);
     exit(1);
     exit(1);
   }
   }
 }
 }
@@ -345,7 +345,7 @@ static void dtx_arg(int argc, char *argv[])
       case 'U':
       case 'U':
         if (optarg) {
         if (optarg) {
           update_bin = strdup(optarg);
           update_bin = strdup(optarg);
-          updating = i == 'u' ? 1 : 2;	/* use 2 if 'U' to not kill/spawn bots. */
+          updating = (i == 'u' ? 1 : 2);	/* use 2 if 'U' to not kill/spawn bots. */
           break;
           break;
         } else
         } else
           exit(0);
           exit(0);