终止 Firefox 插件中生成的进程
我正在使用 JavaScript 生成一个进程。
spawn('Notepad.exe');
我如何在特定事件中杀死它?
I am spawning a process using JavaScript.
spawn('Notepad.exe');
How do I kill it at certain event ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您使用 nsIProcess.runAsync() 或 < code>nsIProcess.runw() (Firefox 插件的常用方法),那么你可以使用 nsIProcess.kill() 来终止该进程。
If you create a process using nsIProcess.runAsync() or
nsIProcess.runw()
(the usual way for a Firefox add-on) then you can usensIProcess.kill()
to kill that process.