kqueue Questions

3

Solved

Is kqueue (on OS X) useful for reading/writing regular files? I know that epoll is not useful for regular files on Linux, so I'm wondering if the same is true for kqueue. EDIT: I don't mean readin...
Plump asked 13/1, 2013 at 2:1

2

Solved

I'm using Watchdog to monitor a network directory, non-recursive, for a specific pattern of files to be created over time. The issue I am seeing is that while it works fantastic when I test locally...
Telemotor asked 28/2, 2012 at 23:7

2

Solved

OK: I'm implementing File Sharing in an iPhone OS app, and of course this means filesystem monitoring. Yay! Basically, the OS copies and/or deletes from and to a directory I can access when the us...
Stilbite asked 4/6, 2010 at 8:34

2

Solved

I'm learning to use epoll function. But my OS X, Mountain Lion doesn't have a header file, sys/epoll.h. I'd like to use epoll function on OS X. How Can I use epoll function?
Hilburn asked 13/12, 2012 at 9:8

1

I have seen a lot of argument about epoll accepted new fd and spawn new thread for read and write on it's own thread doesn't scale well? But how it doesn't scale well? What if every connection has ...
Vasyuta asked 26/8, 2018 at 8:18

1

I am using GO to check if a process (not been parent) has ben terminated, basically something like the pwait command in FreeBSD but written in go. Currently I am trying a for loop with a kill -0, ...
Persevere asked 1/7, 2016 at 20:18

1

Solved

I am reading Redis recently. Redis implements a simple event-driven library based on I/O multiplexing. Redis says it would choose the best multiplexing supported by the system, and gives the follow...
Plasticize asked 17/10, 2014 at 8:29

4

Solved

I want my code to be notified when any file under (either directly or indirectly) a given directory is modified. By "modified", I mean I want my code to be notified whenever a file's contents are a...
Fiberboard asked 20/11, 2009 at 17:52

2

i find that there are some libraries to monitor file changes on mac,for example:https://github.com/bdkjones/VDKQueue but i failed to find a library to monitor file changes on ios platform. could a...
Pearl asked 17/2, 2014 at 11:25

2

Solved

I'm running into an issue that I'm not sure if is expected behavior from kqueue or if it's something I'm doing wrong. I need to install separate events with kqueue for a single socket file descrip...
Pitchford asked 28/8, 2012 at 18:18

2

Solved

I'm currently using a kqueue to handle multiple Clients per Thread in a Serverprocess so I don't want the thread to be terminated when the Signal SIGPIPE appears, i would just like to remove the ac...
Thagard asked 16/7, 2013 at 16:43

1

I have file tree in my Documents folder. What is the easiest way to watch all changes in Documents folder and in all its subfolders? I've already read about kqueue but it seems that it works only f...
Athalla asked 28/10, 2013 at 10:16

1

Solved

When an event is registered with kqueue an ID relating to that event type is supplied; for example a file descriptor is used to identify a file to watch int kq; struct kevent ke; kq = kqueue(); f...
Squiffy asked 5/4, 2013 at 20:41

2

Solved

I want to monitor a directory (of thousands of files, with about 5 levels of sub directories) for when files are changed. I know I can use the FSEvents API to monitor a directory for when files cha...
Pilocarpine asked 26/6, 2012 at 20:43

2

Solved

I am using watchdog to monitor .less file change events on OS X. If I change the contents of a .less file with TextMate or Sublime Text the modification event is captured. However, if I edit the co...
Grandaunt asked 29/9, 2011 at 1:36

2

Solved

I wrote concurrent application and have caught the error: buildFdSets: file descriptor out of range I found out that it is the OS limit on the number of file descriptors in one process, in my...
Dakotadal asked 19/11, 2010 at 13:49

2

Solved

From the Kqueue Wikipedia Page: Kqueue provides efficient input and output event pipelines between the kernel and userland. Thus, it is possible to modify event filters as well as receive pending ...
Skindeep asked 22/4, 2011 at 14:22

1

Solved

following the discussion at How do you use AIO and epoll together in a single event loop?. There are in fact 2 "aio" APIs in linux. There's POSIX aio (the aio_* family of functions), included in g...
Stocktaking asked 31/1, 2010 at 22:8
1

© 2022 - 2025 — McMap. All rights reserved.