Last active
January 14, 2021 06:06
-
-
Save supermamon/ccebc775e295bb2bbabc to your computer and use it in GitHub Desktop.
Respring with posix_spawn
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <spawn.h> | |
#include <signal.h> | |
... | |
pid_t pid; | |
int status; | |
const char *argv[] = {"killall", "SpringBoard", NULL}; | |
posix_spawn(&pid, "/usr/bin/killall", NULL, NULL, (char* const*)argv, NULL); | |
waitpid(pid, &status, WEXITED); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks
Works in Simulator
Not Works in iPhone