让 OSX 终端在关闭时发送 SIGHUP
我正在尝试调试为什么当我关闭它们所在的终端时 tmux 进程仍然认为它们已连接,并且我认为我已经发现了部分问题;当我关闭终端窗口(CMD-W 或单击左上角的红色小按钮)时,它不会发送 SIGHUP!事实上,它只发送 SIGEXIT。我使用这个SO问题中的脚本发现了这一点。其中一张海报给出了与他的 OSX 机器截然不同的结果,但是我的终端似乎不想很好地运行。
有谁知道如何让 OSX 中的终端(我正在运行 10.7.2)在退出时发送正确的信号?谢谢!
I'm trying to debug why tmux processes still think they're attached when I close the terminal they live inside of, and I think I've discovered part of the problem; when I close a terminal window (CMD-W or clicking the little red button in the top left) it doesn't send SIGHUP! In fact, it only sends SIGEXIT. I discovered this using the script from this SO question. One of the posters gave a very different result from his OSX machine, however my terminal does not seem to want to play nicely.
Does anyone know how to make the terminal in OSX (I'm running 10.7.2) send the proper signals when exiting? Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论