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

"OS: Any Linux or Unix System should be fine"? (EPOLLxx) #73

Open
hurzl opened this issue Jan 14, 2014 · 4 comments
Open

"OS: Any Linux or Unix System should be fine"? (EPOLLxx) #73

hurzl opened this issue Jan 14, 2014 · 4 comments

Comments

@hurzl
Copy link

hurzl commented Jan 14, 2014

You are using select.epoll in lib/connection.py which is Linux-only.

http://docs.python.org/3/library/select.html :
select.epoll(sizehint=-1, flags=0) (Only supported on Linux 2.5.44 and newer.)

Is this absolutely necessary?

FreeBSD:

>>> dir(select)
['KQ_EV_ADD', 'KQ_EV_CLEAR', 'KQ_EV_DELETE', 'KQ_EV_DISABLE', 'KQ_EV_ENABLE', 'KQ_EV_EOF', 'KQ_EV_ERROR', 'KQ_EV_FLAG1', 'KQ_EV_ONESHOT', 'KQ_EV_SYSFLAGS', 'KQ_FILTER_AIO', 'KQ_FILTER_PROC', 'KQ_FILTER_READ', 'KQ_FILTER_SIGNAL', 'KQ_FILTER_TIMER', 'KQ_FILTER_VNODE', 'KQ_FILTER_WRITE', 'KQ_NOTE_ATTRIB', 'KQ_NOTE_CHILD', 'KQ_NOTE_DELETE', 'KQ_NOTE_EXEC', 'KQ_NOTE_EXIT', 'KQ_NOTE_EXTEND', 'KQ_NOTE_FORK', 'KQ_NOTE_LINK', 'KQ_NOTE_LOWAT', 'KQ_NOTE_PCTRLMASK', 'KQ_NOTE_PDATAMASK', 'KQ_NOTE_RENAME', 'KQ_NOTE_REVOKE', 'KQ_NOTE_TRACK', 'KQ_NOTE_TRACKERR', 'KQ_NOTE_WRITE', 'PIPE_BUF', 'POLLERR', 'POLLHUP', 'POLLIN', 'POLLNVAL', 'POLLOUT', 'POLLPRI', 'POLLRDBAND', 'POLLRDNORM', 'POLLWRBAND', 'POLLWRNORM', '__doc__', '__file__', '__name__', '__package__', 'error', 'kevent', 'kqueue', 'poll', 'select']
@mknx
Copy link
Owner

mknx commented Jan 21, 2014

Hi,

no this is not absolutely necessary. But since I support Linux (at this time) only. It should be easy to adapt it to Kqueues.

So long

Marcus

@boecko
Copy link

boecko commented Mar 13, 2014

Add me to the list. Would like to use it on my MacMini-Server.

@boecko
Copy link

boecko commented Mar 13, 2014

We should rename the issue to "xBSD support"
lib/daemon.py
def get_pid(filename) is Linux-specific (/proc), too

@boecko
Copy link

boecko commented Mar 25, 2014

Made a pull request, see #99

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

3 participants