소스 검색

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

Estella 16 년 전
부모
커밋
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);