Discussion:
Cuse4BSD + Webcamd + FE_GET_EVENT ioctl
(too old to reply)
Hans Petter Selasky
2010-03-02 13:34:27 UTC
Permalink
int fd_frontend = DvbOpen(DEV_DVB_FRONTEND, adapter, frontend, O_RDWR |
O_NONBLOCK); -----
So for me it looks like O_NONBLOCK is set and used but it still hangs at
the ioctl.
Make sure the flag is also received by webcamd. Maybe there is a bug there.
Any other ideas?
Kind regards
Joerg
Could you compile webcamd with -g and run it from gdb. Then dump all threads
when it is hanging?

--HPS
Joerg Pulz
2010-03-02 14:40:53 UTC
Permalink
Post by Hans Petter Selasky
int fd_frontend = DvbOpen(DEV_DVB_FRONTEND, adapter, frontend, O_RDWR |
O_NONBLOCK); -----
So for me it looks like O_NONBLOCK is set and used but it still hangs at
the ioctl.
Make sure the flag is also received by webcamd. Maybe there is a bug there.
Any other ideas?
Kind regards
Joerg
Could you compile webcamd with -g and run it from gdb. Then dump all threads
when it is hanging?
If you meant hitting Ctrl-C in gdb and running 'thread apply all bt' in
gdb, i've done this and will send you the results off-list.

Joerg

- --
The beginning is the most important part of the work.
-Plato

Loading...