4

I have a complex application with USR1 and USR2 already defined as having a well-defined and not replaceable purpose.

There are tons of different signals in linux. Might there be another one (maybe a deprecated one) that can be safely used without expecting the OS to trigger destructive behavior?

  • 1
    It really depends on your application, and on what you want to do. For example if your application is a daemon and you want to tell it to print its status to a file, you could use SIGHUP. – Satō Katsura Sep 2 '16 at 7:34
  • 1
    SIGHUP is also commonly used to reload a daemon's configuration. – Michael Daffin Sep 2 '16 at 9:57
0

In that case:

you could use SIGHUP

At least using Kubuntu those available signals can also be used: SIGRTMIN SIGRTMAX SIGRTMIN+1 SIGRTMIN+2 and similar ones that can be seen using kill -l.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.