提交 3e0e577e 编写于 作者: K kohsuke

recording test code that added for debugging

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@13659 71c3de6d-444a-0410-be80-ed276b4c234a
上级 434a1091
......@@ -587,6 +587,22 @@ public abstract class ProcessTreeKiller {
}
}
// public static void main(String[] args) {
// // dump everything
// LOGGER.setLevel(Level.ALL);
// ConsoleHandler h = new ConsoleHandler();
// h.setLevel(Level.ALL);
// LOGGER.addHandler(h);
//
// Solaris killer = (Solaris)get();
// Solaris.SolarisSystem s = killer.createSystem();
// Solaris.SolarisProcess p = s.get(Integer.parseInt(args[0]));
// System.out.println(p.getEnvVars());
//
// if(args.length==2)
// p.kill();
// }
/*
On MacOS X, there's no procfs <http://www.osxbook.com/book/bonus/chapter11/procfs/>
instead you'd do it with the sysctl <http://search.cpan.org/src/DURIST/Proc-ProcessTable-0.42/os/darwin.c>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册