[issue30430] Cannot write to a tun interface file

Antoine Pitrou report at bugs.python.org
Mon May 22 11:12:40 EDT 2017


Antoine Pitrou added the comment:

So basically the write() system call seems to be returning EINVAL.  Can I suggest the following steps:

1. try to reproduce using os.open() and os.write() instead of open() and write() (just to make sure something doesn't get in the way)

2. if it still fails, try to reproduce using an equivalent C snippet

If 2 fails as well, then this is a system issue and not a Python issue.  Otherwise, we'll have to find out how Python differs from C.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30430>
_______________________________________


More information about the Python-bugs-list mailing list