Basic signal handling in C++

后端 未结 4 355
隐瞒了意图╮
隐瞒了意图╮ 2021-01-02 02:22

This is a pretty basic scenario but I\'m not finding too many helpful resources. I have a C++ program running in Linux that does file processing. Reads lines, does various t

4条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-02 03:09

    You can define a Boost signal corresponding to the OS signal and tie the Boost signal to your slot to invoke the respective handler.

提交回复
热议问题