我能赶上从按Ctrl-C哪些键盘信号分开? [英] What keyboard signal apart from Ctrl-C can I catch?

查看:114
本文介绍了我能赶上从按Ctrl-C哪些键盘信号分开?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个通过关闭处理按Ctrl-C SIGINT一(C,Linux)的应用程序。
我想补充另一个信号处理程序,这样我可以,而运行重装配置使用另一个按键组合的。

I have a (C, Linux) application which handles Ctrl-C SIGINT by shutting down. I'd like to add another signal handler so that I can use another keystroke combo for "reload configuration while running".

所以我在寻找从信号我可以通过按键发送到前台进程,它不强制进程退出或暂停。是否有任何其他人呢?

So I'm looking from a signal I can send to the foreground process by keystroke, which doesn't force the process to quit or suspend. Are there any others?

推荐答案

您可以使用 CTRL + Z

SIGTSTP 

值= 20

有关详细信息,请参阅此链接

For more details refer this link.

这篇关于我能赶上从按Ctrl-C哪些键盘信号分开?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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