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

Allow for configurable timeout #272

Open
Harvie opened this issue Nov 15, 2023 · 0 comments
Open

Allow for configurable timeout #272

Harvie opened this issue Nov 15, 2023 · 0 comments

Comments

@Harvie
Copy link

Harvie commented Nov 15, 2023

Hello, i need zbarcam to exit if it does not recognize QR code in given time. Therefore i use something like
timeout 30 zbarcam /dev/video0

timeout command kills it with SIGTERM after 30 seconds if nothing happens, however if i do this often, after few cycles it leads to camera being left in some stuck state. Probably because it was not properly deinitialized when zbarcam got killed. I am not saying this is zbarcam bug, even tho i haven't checked the signal handlers. However i think it would be probably more robust if zbarcam could handle such timeout itself and did properly closed the camera after such timeout. eg.:

zbarcam --timeout=30 /dev/video0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant