瀏覽代碼

svn: 2391

Bryan Drewery 21 年之前
父節點
當前提交
e1f0a62534
共有 2 個文件被更改,包括 3 次插入2 次删除
  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: