Skip to content

Instantly share code, notes, and snippets.

@Estella
Created July 1, 2010 01:10
Show Gist options
  • Save Estella/459418 to your computer and use it in GitHub Desktop.
Save Estella/459418 to your computer and use it in GitHub Desktop.
--- 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