我正在编写一个需要拦截系统信号的多线程程序(例如SIGINT).我想知道是否有一种标准化的方式来"捕获"这些信号,如:
c c++ posix signals
c ×1
c++ ×1
posix ×1
signals ×1