|
- #include "TDPRootListController.h"
- #import <spawn.h>
-
- @implementation TDPRootListController
-
- - (NSArray *)specifiers {
- if (!_specifiers) {
- _specifiers = [self loadSpecifiersFromPlistName:@"Root" target:self];
- }
-
- return _specifiers;
- }
-
- - (void)respring
- {
- pid_t pid;
- int status;
- const char* args[] = {"killall", "-9", "backboardd", NULL};
- posix_spawn(&pid, "/usr/bin/killall", NULL, NULL, (char* const*)args, NULL);
- waitpid(pid, &status, WEXITED);
- }
-
- @end
|