You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • I guess it doesn't help in the original case where execution stops almost immediately (as the chances of Ctrl-C being hit during execution are tiny), but I guess I could do something like:

    executeInterval();
    if (wasError or Ctrl-C pressed during execution) {
      reportError();
      if (Ctrl-C last pressed less than 0.5 sec ago)
        removeInterval();
    }
    

    Hopefully that would work out?

About

Avatar for Gordon @Gordon started