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

error: (4, 'Interrupted system call') on ^C #541

Open
dave-lawrence-dev opened this issue Sep 12, 2018 · 4 comments
Open

error: (4, 'Interrupted system call') on ^C #541

dave-lawrence-dev opened this issue Sep 12, 2018 · 4 comments

Comments

@dave-lawrence-dev
Copy link

Hi,

I am using pyroute2 (0.4.5) on an RPi about 10% of time when I quit my app with ^C I get:

Exception in thread Netlink async cache:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 763, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/local/lib/python2.7/dist-packages/pyroute2/netlink/nlsocket.py", line 494, in async_recv
    events = poll.poll()
error: (4, 'Interrupted system call')

and I have to ^\ to be able to continue.

I realise this may not be the latest release, but the same line is still present at 535 without any protection.

@svinota
Copy link
Owner

svinota commented Sep 12, 2018

Thanks, investigating.

@dave-lawrence-dev
Copy link
Author

Hi, I can't easily send you my (full) application, but I am very happy to try out any fixes

@svinota
Copy link
Owner

svinota commented Sep 25, 2018

Sorry for the response timings. Could you please send me what modules do you use from the library and how do you instantiate netlink sockets. And do you use IPDB.

@dave-lawrence-dev
Copy link
Author

Hi, Just checking if you got the (direct email) reply to the above and if you'd had a chance to investigate.
Thanks

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

No branches or pull requests

2 participants