How to block all SIGNALS in thread WITHOUT using SIGWAIT?

前端 未结 2 1855
北恋
北恋 2020-12-30 09:45

I have a main application that spawns a seperate thread to process messages off a queue. I have an issue on AIX when I hit CTRL-C as it seems to make some \"connection handl

2条回答
  •  说谎
    说谎 (楼主)
    2020-12-30 09:47

    Still wrong design. Do not use CTRL+C to stop an application in a controlled manner. Use a correctly designed controller app that will be accessible over CORBA, RMI, or some other method to interact with the user and control the background app.

    Have fun guys...

提交回复
热议问题