Externally disabling signals for a Linux program

前端 未结 5 2065
慢半拍i
慢半拍i 2021-02-13 13:00

On Linux, is it possible to somehow disable signaling for programs externally... that is, without modifying their source code?

Context:

5条回答
  •  暖寄归人
    2021-02-13 13:49

    I would suggest that your C (and Java) application needs rewriting so that it can handle an exception, what happens if it really does need to be interrupted, power fails, etc...

    I that fails, J-16 is right on the money. Does the user need to interract with the process, or just see the output (do they even need to see the output?)

提交回复
热议问题