SourceForge has been redesigned. Learn more.

#56 hook into console abort to tear down full process tree

Core (11)
Ryan Brown

If NAnt is run from the console and Ctrl-C is pressed, the console is closed, etc... NAnt will tear down the entire process tree of spawned processes (as Ant does)

However, Job Objects ( may be a cleaner approach to the issue -- but would require the external process spawning to be modified. Also, as per there appears to be issues when trying to utilize Job Objects when launched from certain external programs -- possibly due to the inability to nest them.


  • Ryan Boggs

    Ryan Boggs - 2010-06-19

    Wow, thanks. I'll take a look at this in the near future.

  • Ryan Boggs

    Ryan Boggs - 2010-06-19
    • assigned_to: nobody --> rmboggs
  • Ryan Brown

    Ryan Brown - 2010-07-02

    source file missing from diff

  • Dominik Guder

    Dominik Guder - 2010-07-31

    It should be checked if this also works on mono with linux/mac machines.
    The only place where currently DllImports are used is sysinfo task for versions net-1.0, net -1.1 and mono-1.0

  • Ryan Brown

    Ryan Brown - 2010-07-31

    It may very well tear down the process tree on Linux/Mac without any modifications (except maybe a <exec spawn="true" .../> ?)

    Linux/UNIX is generally pretty good about parent processes taking down their children in many cases.


Log in to post a comment.