Skip to content

Commit

Permalink
Use KERN_INVALID_ARGUMENT instead of magic -309
Browse files Browse the repository at this point in the history
  • Loading branch information
Keno committed Aug 27, 2013
1 parent 8b74988 commit 9c56286
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,7 @@ DLLEXPORT kern_return_t catch_exception_raise
return KERN_SUCCESS;
}
else {
return -309;
return KERN_INVALID_ARGUMENT;
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/profile.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ kern_return_t profiler_segv_handler

// Not currently unwinding. Raise regular segfault
if (forceDwarf == -2)
return -309;
return KERN_INVALID_ARGUMENT;

if (forceDwarf == 0)
forceDwarf = 1;
Expand Down

0 comments on commit 9c56286

Please sign in to comment.