0

我的应用程序返回signal 13: Broken pipe: 13错误,原因可能是服务器端问题,我试图忽略我的应用程序中的 SIGPipes 以查看它是否有效,但是 xcode 不会让我这样做。它只是继续提供信号。

我添加了以下内容:

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    // We expect write failures to occur but we want to handle them where
    // the error occurs rather than in a SIGPIPE handler.
    signal(SIGPIPE, SIG_IGN);
}

不幸的是,这根本没有帮助,而且应用程序无论如何都会冻结。我在这里想念什么?

4

1 回答 1

0

好吧,几天后我发现signal 13sigPIPE 已修复,而是返回一个信号 9,这意味着内存不足。这不是我的应用程序的问题,而是设备内存的问题,因为其他应用程序也返回了这个问题。

于 2013-06-28T10:06:11.807 回答