Well, I guess you could change the code to send a SIGINT to the process
group, the same way using ^C at the command line would.

Ok, so here is a variation on my previous attempt. This time, I use SIGINT:

// job.c inside reap_children() near line 500:
if (err && block)
  {
    static int printed = 0;
    fflush (stdout);
    if (!printed)
    {
      error (NILF, _("*** Waiting for unfinished jobs...."));
      fatal_error_signal(SIGINT);
    }
    printed = 1;
  }

I am not getting what I want from this code. The prompt does come back, but child processes do not completely go away. So this is not the same as ^C. Perhaps I am not doing this in the correct place in the code.

Martin


_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to