Bug 256559 - multimedia/webcamd: webcamd is unkillable
Summary: multimedia/webcamd: webcamd is unkillable
Status: Closed Works As Intended
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Yuri Victorovich
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-11 20:57 UTC by Yuri Victorovich
Modified: 2021-06-17 03:04 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (hselasky)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yuri Victorovich freebsd_committer freebsd_triage 2021-06-11 20:57:04 UTC
After unplugging and plugging webcam and plugging it back webcamd became unkillable:

> $ ps ax | grep webc
>   902  -  D<Es     0:06.95 /usr/local/sbin/webcamd -i 0 -d ugen4.3 -B -U webcamd -G webcamd
> 71873  6  S+       0:00.00 grep webc

It seems like the system needs to be rebooted.

webcamd-5.13.2.4
Comment 1 Hans Petter Selasky freebsd_committer freebsd_triage 2021-06-11 21:06:14 UTC
What does:

procstat -akk

output in this state?

--HPS
Comment 2 Hans Petter Selasky freebsd_committer freebsd_triage 2021-06-11 21:06:46 UTC
Usually webcamd cannot be killed when applications are using the video devices.

It waits for all clients to exit first.

--HPS
Comment 3 Yuri Victorovich freebsd_committer freebsd_triage 2021-06-11 21:20:18 UTC
Yup, this is a bug in qTox that it doesn't close the V4L device.
Comment 4 Yuri Victorovich freebsd_committer freebsd_triage 2021-06-11 21:20:38 UTC
Sorry for bothering you!
Comment 5 Graham Perrin freebsd_committer freebsd_triage 2021-06-17 03:04:21 UTC
A thought (because I had the same misunderstanding of webcamd): the package message could be expanded, a little, to include a paragraph about things that place a hold. 

In plain English (and/or translated), a two-sentence paragraph should cover it …

pkg query %M webcamd