|
|
|
|
|
by looser
4914 days ago
|
|
Using some logic here: 1 - It seems Mauro added a new error message called ENOENT;
2 - After this change, Mauro noticed an error at pulseaudio;
3 - Linus says that always the userspace is right and kernel space is wrong in those cases and simply discarded Mauro's argument; But thinking about this I think Mauro is not entirely wrong. Mauro's question makes a lot of sense to me: Why pulseaudio failed after just a new error code was added to the kernel? Can't it be that pulseaudio is doing some wrong treatment that is ignoring the possibility of a new (or non-existent) error code? |
|
The problem is that it was being misappropriated in a nonsensical way, returned by an ioctl call. ioctl can only be called on already-open file descriptors, so it makes no sense for it to complain that the file doesn't exist. If the file pointed to by the file descriptor didn't exist, the file descriptor wouldn't have been able to be opened in the first place (errno would have been set to ENOENT by the call to open).