I want to start the calculator application from my code, interrupt it with sigint-2 shows that it has been interrupted, start it again, and then quit it with sigquit-9, the idea is to interrupt it within the C code so it is not necessary to press Ctrl+C or Ctrl+</kbd>
Write a C program that accepts the signals SIGINT and SIGQUIT via a signalfd file descriptor. The program terminates after accepting a SIGQUIT signal.
What is the syntax in C language to start a process, then interrupt it, then end it?