Created
July 1, 2010 01:10
-
-
Save Estella/459418 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- src/shell.c.orig Wed Jun 30 13:07:26 2010 | |
+++ src/shell.c Wed Jun 30 13:49:13 2010 | |
@@ -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); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment