Skip to content
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

停止录屏windows系统报错 #121

Open
zhish1228 opened this issue May 13, 2024 · 2 comments
Open

停止录屏windows系统报错 #121

zhish1228 opened this issue May 13, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@zhish1228
Copy link

操作系统为win

self._p.send_signal(signal.SIGINT)

self._p.send_signal(signal.SIGINT)入参为2

以下代码直接抛异常了
def send_signal(self, sig):
"""Send a signal to the process."""
# Don't signal a process that we know has already died.
if self.returncode is not None:
return
if sig == signal.SIGTERM:
self.terminate()
elif sig == signal.CTRL_C_EVENT:
os.kill(self.pid, signal.CTRL_C_EVENT)
elif sig == signal.CTRL_BREAK_EVENT:
os.kill(self.pid, signal.CTRL_BREAK_EVENT)
else:
raise ValueError("Unsupported signal: {}".format(sig))

@codeskyblue codeskyblue added the bug Something isn't working label May 14, 2024
@zhish1228
Copy link
Author

版本 : windows 10

@zhish1228
Copy link
Author

adbutils = 2.3.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants