Skip to content

Instantly share code, notes, and snippets.

@supermamon
Last active January 14, 2021 06:06
Show Gist options
  • Select an option

  • Save supermamon/ccebc775e295bb2bbabc to your computer and use it in GitHub Desktop.

Select an option

Save supermamon/ccebc775e295bb2bbabc to your computer and use it in GitHub Desktop.
Respring with posix_spawn
#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);
@s3ud-alshaman
Copy link
Copy Markdown

Thanks

Works in Simulator
Not Works in iPhone

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