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

Don't fail when it wasn't possible to fetch the interface name. #123

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

twasilczyk
Copy link
Contributor

@twasilczyk twasilczyk commented Jan 15, 2019

On some systems SIOCGIFNAME may fail with ENOTTY, but the actual
slcanX interface gets properly configured. Instead of crashing hard
on such case, let's gracefuly degrade and just not display the
interface name.

This is the issue I mentioned in #118

@marckleinebudde
Copy link
Member

marckleinebudde commented Jan 16, 2019

On which systems do you see the ioctl() to fail?

@twasilczyk
Copy link
Contributor Author

It's Android. I've built the kernel (4.4) by myself, so there is a chance I misconfigured something.

It's clearly a problem with my system, but it's hard to say if it's tied to Android P or my specific device. I'd appreciate help debugging this, but the patch with workaround has still some value, because any other Android developer may hit the issue at other time.

On some systems SIOCGIFNAME may fail with ENOTTY, but the actual
slcanX interface gets properly configured. Instead of crashing hard
on such case, let's gracefuly degrade and just not display the
interface name.
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

Successfully merging this pull request may close these issues.

2 participants