Skip to content

Instantly share code, notes, and snippets.

@Halo-Michael
Created August 22, 2020 10:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Halo-Michael/b49f8d7ee85f5897165c65915efc25bb to your computer and use it in GitHub Desktop.
Save Halo-Michael/b49f8d7ee85f5897165c65915efc25bb to your computer and use it in GitHub Desktop.
#include <CoreFoundation/CoreFoundation.h>
#include <pthread.h>
void* foo(void *foo) {
return NULL;
}
int main(int argc, char **argv) {
pthread_t thread;
pthread_create(&thread, NULL, &foo, NULL);
void *t;
pthread_join(thread, &t);
execvp("ls", (char *[]){"ls", ".", NULL});
perror("ls");
return -1;
}
@Halo-Michael
Copy link
Author

Cydia Substrate bug, fixed on 0.9.7108 or higher.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment