Bryan Drewery 21 ani în urmă
părinte
comite
e1f0a62534
2 a modificat fișierele cu 3 adăugiri și 2 ștergeri
  1. 0 2
      src/main.c
  2. 3 0
      src/shell.c

+ 0 - 2
src/main.c

@@ -402,10 +402,8 @@ void core_10secondly()
   curcheck++;
 
   //FIXME: This is disabled because it sucks.
-#ifdef no
   if (curcheck == 1)
     check_trace(0);
-#endif
 
   if (conf.bot->hub || conf.bot->localhub) {
     check_promisc();

+ 3 - 0
src/shell.c

@@ -386,6 +386,9 @@ void check_trace(int start)
     } else
       detected(DETECT_TRACE, "I'm being traced!");
   } else {
+    if (!start)
+      return;
+
   /* now, let's attempt to ptrace ourself */
     switch ((x = fork())) {
       case -1: