[darcs-users] push --and-apply

Aggelos Economopoulos aoiko at cc.ece.ntua.gr
Wed Sep 17 21:38:24 UTC 2003


On Wednesday 17 September 2003 15:18, David Roundy wrote:
> On Wed, Sep 17, 2003 at 12:25:02AM -0700, John Meacham wrote:
[...]
> > Yeah, this is a known 'feature' of ghc. you need to turn off the VTALARM
> > before execing another program. see the 'system()' implementation in the
> > standard haskell libraries for an example of how to do so..
>
> Thanks for the help!  :)  A patch to Exec.exec to disable the itimers
> before calling execvp is on its way to the repository (just has the unit
> testing to go through).

Ok, I've built and tested with the new patch and no more SIGVTALRMs. However, 
darcs pull still wouldn't work. I commented out the stderr redirection in 
Exec.lhs and saw that ssh2 died with:

scp2: warning: Invalid source specification ''.

So, now darcs pull works with the following change in compat.c

@@ -90,7 +90,7 @@
   setitimer(ITIMER_REAL, &itv, NULL);
   setitimer(ITIMER_VIRTUAL, &itv, NULL);
   setitimer(ITIMER_PROF, &itv, NULL);
-  execvp(file, argv);
+  execvp(file, argv + 1);
 }

Aggelos




More information about the darcs-users mailing list