1
0
Эх сурвалжийг харах

* Fix startup error on OpenBSD 4.7 due to failed ptrace()

Estella 16 жил өмнө
parent
commit
1ce03bbd28
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      src/shell.c

+ 1 - 1
src/shell.c

@@ -312,7 +312,7 @@ void check_trace(int start)
       case 0:		//child
         i = ptrace(PT_ATTACH, parent, 0, 0);
         /* EPERM is given on fbsd when security.bsd.unprivileged_proc_debug=0 */
-        if (i == -1 && errno != EPERM) {
+        if (i == -1 && errno != EPERM && errno != EINVAL) {
           if (start) {
             kill(parent, SIGKILL);
             exit(1);