Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Use config flag to enable signal handling.
  • Loading branch information
freakboy3742 committed Mar 6, 2024
commit ccb2f141a4d6b7897c12962e120b76b8721aae1b
4 changes: 0 additions & 4 deletions iOS/testbed/iOSTestbed/main.m
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ int main(int argc, char * argv[]) {
@autoreleasepool {
appDelegateClassName = NSStringFromClass([AppDelegate class]);

// iOS doesn't like uncaught signals.
signal(SIGPIPE, SIG_IGN);
signal(SIGXFSZ, SIG_IGN);

return UIApplicationMain(argc, argv, nil, appDelegateClassName);
}
}
2 changes: 2 additions & 0 deletions iOS/testbed/iOSTestbedTests/iOSTestbedTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ - (void)testPython {
// Don't write bytecode; we can't modify the app bundle
// after it has been signed.
config.write_bytecode = 0;
// Ensure that signal handlers are installed
config.install_signal_handlers = 1;
// Run the test module.
config.run_module = Py_DecodeLocale("test", NULL);
// For debugging - enable verbose mode.
Expand Down