接收SIGTERM
我用c语言设计了一个消息传递接口,用于在系统中运行的不同进程之间提供通信。该接口为此目的创建 10-12 个线程,并使用 TCP 套接字来提供通信。
它工作正常,但有时会收到信号 SIGTERM。谁能告诉我为什么会收到这个信号。
I have designed a message passing interface in c which is used to provide communication between different processes running in my system. This interface creates 10-12 threads for its purpose and use TCP sockets to provide communication.
It is working fine but sometimes it receives signal SIGTERM. Can anyone please tell me why is it receiving this signal.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果人类没有杀死你的进程,那么内核就会杀死你的进程。
当机器试图自救免于溺水时(您已用完所有内存/交换/资源),可能会发生这种情况。可能想看看当您的进程运行时系统上发生了什么。
If a human isn't killing your process, then the kernel is.
This can happen when a machine is trying to save itself from drowning (you've used up all the memory/swap/resources). Might want to look at what's going on on that system when your process is running.