如何杀死 Ant 分叉进程?
我有一个 Ant 构建文件,里面有一个任务。问题是每次我杀死外部Ant进程时,分叉进程仍然在那里运行,所以Windows任务管理器中会有很多java进程,我想知道当我杀死外部Ant进程时是否有办法杀死所有子进程同时进行处理。
谢谢。
I have an Ant build file and there is a task in it. The problem is every time i kill the outer Ant process the forked process is still running out there, so there will be many java process in Windows Task manager, I wonder if there is way when i kill the outer Ant process it will kill all child process at the same time.
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,使用“杀死进程树将”杀死所有子进程。
Yes using "kill process tree will" kill all sub-processes.