Skip to content

Commit

Permalink
Merge pull request #18508 from Halo-Michael/master
Browse files Browse the repository at this point in the history
[iOS] Little cleanup
  • Loading branch information
hrydgard committed Dec 11, 2023
2 parents 1a02995 + c4008ee commit 03bd7c1
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions ios/main.mm
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@
static int (*ptrace)(int request, pid_t pid, caddr_t addr, int data);

#define CS_OPS_STATUS 0 /* return status */
#define CS_KILL 0x00000200 /* kill process if it becomes invalid */
#define CS_KILL 0x00000200 /* kill process if it becomes invalid */
#define CS_DEBUGGED 0x10000000 /* process is currently or has previously been debugged and allowed to run with invalid pages */
#define PT_TRACE_ME 0 /* child declares it's being traced */
#define PT_SIGEXC 12 /* signals as exceptions for current_proc */
#define PT_TRACE_ME 0 /* child declares it's being traced */
#define PT_SIGEXC 12 /* signals as exceptions for current_proc */
#define ptrace(a, b, c, d) syscall(SYS_ptrace, a, b, c, d)

static void *exception_handler(void *argument) {
Expand Down Expand Up @@ -160,8 +160,6 @@ bool jb_has_container(void) {
return ![entitlements[@"com.apple.private.security.no-sandbox"] boolValue];
}

extern const char *environ[];

static char *childArgv[] = {NULL, "debugme", NULL};

bool jb_spawn_ptrace_child(int argc, char **argv) {
Expand Down

0 comments on commit 03bd7c1

Please sign in to comment.