title: Ending multiple instances of a C program at once?
body: <p>I was wondering what the best way is to go about exiting multiple C programs at once? I'm running the same C program in two different terminals (Linux) and they are communicating through an interim text file. When the user ends one of them, most likely using CTRL-C, I want them both to end at once. I've read that signals can be used to do capture the user interrupting a program, but how will the program running in the other terminal also know when to end?  </p>
  
  <p>A conceptual explanation is plenty, or a nudge in the right direction is all I need. Thank you!</p>