Skip to content

Commit

Permalink
I now know for sure: mach_task_self() is a constant.
Browse files Browse the repository at this point in the history
  • Loading branch information
saurik committed Nov 2, 2011
1 parent 8161339 commit 232a92f
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion Cydia.mm
Expand Up @@ -47,7 +47,6 @@ void FinishCydia(const char *finish) {
}

ForkBugStatus DetectForkBug() {
// XXX: I am not certain if I should deallocate this port
mach_port_t self(mach_task_self());
int page(getpagesize());

Expand Down
1 change: 0 additions & 1 deletion DarwinInjector.cpp
Expand Up @@ -79,7 +79,6 @@ _extern bool MSHookProcess(pid_t pid, const char *library) {

vm_size_t size(depth + Stack_);

// XXX: I am not certain if I should deallocate this port
mach_port_t self(mach_task_self()), task;
_krncall(task_for_pid(self, pid, &task));

Expand Down
1 change: 0 additions & 1 deletion MachMemory.cpp
Expand Up @@ -105,7 +105,6 @@ extern "C" SubstrateMemoryRef SubstrateMemoryCreate(SubstrateAllocatorRef alloca
int page(getpagesize());

mach_port_t reply(mig_get_reply_port());
// XXX: I am not certain if I should deallocate this port
mach_port_t self(mach_task_self());

uintptr_t base(reinterpret_cast<uintptr_t>(data) / page * page);
Expand Down

0 comments on commit 232a92f

Please sign in to comment.