Last active
October 19, 2016 19:16
-
-
Save xen0l/2792654274bc57470cb1b4217eaf76d9 to your computer and use it in GitHub Desktop.
epoll on illumos vs linux (python example)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Linux: | |
Python 3.5.1 (default, Mar 3 2016, 09:29:07) | |
[GCC 5.3.0] on linux | |
Type "help", "copyright", "credits" or "license" for more information. | |
>>> import os | |
>>> import select | |
>>> os.uname() | |
posix.uname_result(sysname='Linux', nodename='archlinux.vagrant.vm', release='4.5.0-1-ARCH', version='#1 SMP PREEMPT Tue Mar 15 09:41:03 CET 2016', machine='x86_64') | |
>>> select.epoll(select.EPOLL_CLOEXEC).close() | |
>>> select.epoll(flags=123456) | |
Traceback (most recent call last): | |
File "<stdin>", line 1, in <module> | |
OSError: [Errno 22] Invalid argument | |
illumos (OpenIndiana): | |
Python 3.5.2 (default, Oct 19 2016, 22:05:28) | |
[GCC 4.9.4] on sunos5 | |
Type "help", "copyright", "credits" or "license" for more information. | |
>>> import os | |
>>> import select | |
>>> os.uname() | |
posix.uname_result(sysname='SunOS', nodename='external.oi-build.r61.net', release='5.11', version='illumos-c7e7976', machine='i86pc') | |
>>> select.epoll(select.EPOLL_CLOEXEC).close() | |
>>> select.epoll(flags=123456) | |
<select.epoll object at 0xfffffd7fff1f8240> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment