[Bug 273405] wc /dev/wmistat0 fails with EBADF

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 28 Aug 2023 17:27:25 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=273405

--- Comment #1 from John F. Carr <jfc@mit.edu> ---
Driver function acpi_wmi_wmistat_read prohibits reads except by the same
process ID that opened the device.  The PID check was in the first version of
the driver in 2009.  This is a very odd restriction.  It is stricter than
allowing only one file descriptor to attach to the device or only allowing the
generated data to be read once.

-- 
You are receiving this mail because:
You are the assignee for the bug.