[darcs-devel] darcs patch: Only test for SSH ControlMaster if there... (and 1 more)

Juliusz Chroboczek Juliusz.Chroboczek at pps.jussieu.fr
Sat May 27 07:51:05 PDT 2006


> If only there was some way to know how to kill off all the control
> masters at the end, (i.e. knowing which control masters we ran)
> we could even completely get rid of the code in DarcsCommands has
> make it completely transparent.  Any ideas?

Yes -- Tomasz Zielonka has implemented just what you need.  See atexit
in AtExit.lhs, and for an example of use, withDelayedDir in Lock.lhs.

If you're puzzled by Tomasz's code, by the way, don't worry -- it
relies on knowledge of GHC internals.

                                        Juliusz




More information about the darcs-devel mailing list