On Wed, Jul 10, 2002 at 10:07:58PM -0400, Glenn Maynard wrote:
> Try:
> repeat 0s !echo hi
> A ^C gets eaten by the child job; you have to mash ^C to stop it.  I'm
> not sure there's a clean way to fix this.  (Repeat shouldn't stop if its
> command exits with an error; perhaps it should exit if the command exits
> because of an interrupt?)

Try this patch.

--
   Alexander.
Index: ProcWait.cc
===================================================================
RCS file: /home/lav/cvsroot/lftp/src/ProcWait.cc,v
retrieving revision 1.14
diff -u -p -u -r1.14 ProcWait.cc
--- ProcWait.cc 2002/03/18 16:29:28     1.14
+++ ProcWait.cc 2002/07/17 07:58:34
@@ -83,6 +83,8 @@ bool ProcWait::handle_info(int info)
    }
    else
    {
+      if(WIFSIGNALED(info) && WTERMSIG(info)==SIGINT)
+        SignalHook::IncreaseCount(SIGINT);
       status=TERMINATED;
       term_info=info;
       return true;

Reply via email to