-
-
Notifications
You must be signed in to change notification settings - Fork 357
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
程序里监听退出信号想一旦监听退出就关闭浏览器 导致奔溃 #550
Labels
question
Questions related to rod
Comments
Please add a valid |
error:
|
go mod file:
|
This was referenced Mar 4, 2022
ghost
changed the title
在里监听退出信号想一旦监听退出就关闭浏览器 导致奔溃
程序里监听退出信号想一旦监听退出就关闭浏览器 导致奔溃
Mar 4, 2022
能简化下代码并描述下操作步骤吗? |
想实现这个功能,如果程序退出,不管是执行完毕退出退出还是异常退出,也把chromium退出干净。 我简化了一下,监听退出信号,如果监听到就执行 |
当 golang 进程退出时 rod 会自动 kill 浏览器进程,这个可以看看 leakless 部分的文档说明。你可以删除所有 signal 的处理代码,也无需执行 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Rod Version: v0.102.1
The code to demonstrate your question
What have you tried to solve the question
reinstall gorod but failed
The text was updated successfully, but these errors were encountered: