如何摆脱SIGTERM错误 [英] How to get rid of SIGTERM error

查看:574
本文介绍了如何摆脱SIGTERM错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在使用新的xcode4中的这个iphone应用程序。实际上每次我在模拟器中退出我的应用程序时,我在main.m中的代码行上出现错误这是我的代码行,然后是下一行的错误

i have been working on this iphone app in the new xcode4. Practically every time I exit my application in the simulator I get an error on a code line in the main.m Here is my line of code, and then the error on the next line

int retVal = UIApplicationMain(argc,argv,nil,nil);

int retVal = UIApplicationMain(argc, argv, nil, nil);

线程1:程序收到信号:SIGTERM。

Thread 1:Program received signal: "SIGTERM".

这里发生了什么?我该如何解决这个问题?

What is happening here? How do I fix this?

推荐答案

SIGTERM是一个Unix信号,用于告诉程序退出(TER​​Minate)。当您在Xcode中运行程序时,它会在调试器程序gdb中运行它,它会自动捕获某些信号。 gdb的信号处理行为可以是控制器,但我现在正在研究它是如何完成的,所以不能给你详细信息。在过去,我认为Mac OS或iPhone上的应用程序是Apple Quit事件,但最近添加的突然终止功能可能会使用SIGTERM信号。

SIGTERM is a Unix signal, used to tell your program to quit (TERMinate). When you run your program in Xcode, it runs it within gdb, the debugger program, which automatically catches certain signals. The signal handling behaviour of gdb can be controller but I'm just now myself researching how it's done so can't give you details. In the past, applications on Mac OS or iPhone were sent Apple Quit events, I think, but the SIGTERM signal may be used by the sudden termination feature recently added.

这篇关于如何摆脱SIGTERM错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆