Re: watching for new files: libevent vs. libev

2013-04-05 Thread Marc Lehmann
On Thu, Apr 04, 2013 at 08:25:24PM -0400, Mikhail T. mi+t...@aldan.algebra.com wrote: 04.04.2013 16:08, Tony Arcieri ???(??): If it doesn't work on Linux it's worthless. It does not... Which, I suppose, makes it only slightly less useless that libev. Because libev does not even work on

Re: watching for new files: libevent vs. libev

2013-04-05 Thread Marc Lehmann
On Fri, Apr 05, 2013 at 12:40:22PM -0400, Mikhail T. mi+t...@aldan.algebra.com wrote: And what is this BSD thing? libev obviously works quite fine on BSDs, so you can't mean that. I was talking about watching a directory for changes. Using libevent on BSD, I can get notified, when a

Re: watching for new files: libevent vs. libev

2013-04-05 Thread Mikhail T.
On 05.04.2013 12:59, Marc Lehmann wrote: Saying libev does not work on BSD just means that you You are way too angry to be taken seriously, Marc. I never said, what you put into quotes. Never ever. As for compiler warnings, I don't need to convince you of anything. /I/ would think thrice

Re: watching for new files: libevent vs. libev

2013-04-05 Thread Mikhail T.
On 05.04.2013 13:06, Mikhail T. wrote: On 05.04.2013 12:59, Marc Lehmann wrote: Saying libev does not work on BSD just means that you You are way too angry to be taken seriously, Marc. I never said, what you put into quotes. Never ever. Well, looking back, I can see, what could've been

Re: watching for new files: libevent vs. libev

2013-04-05 Thread Marc Lehmann
On Fri, Apr 05, 2013 at 01:20:09PM -0400, Mikhail T. mi+t...@aldan.algebra.com wrote: On 05.04.2013 13:06, Mikhail T. wrote: On 05.04.2013 12:59, Marc Lehmann wrote: Saying libev does not work on BSD just means that you You are way too angry to be taken seriously, Marc. I never said, what

Re: watching for new files: libevent vs. libev

2013-04-05 Thread Mikhail T.
On 05.04.2013 13:47, Marc Lehmann wrote: I do care, but since the only place where this warning can be fixed is in the compiler, caring is not enough. If you disagree with that, you had ample time to explain what the problem is, or how you think it could be fixed. Compiler warning is THE

Re: watching for new files: libevent vs. libev

2013-04-05 Thread Tony Arcieri
On Fri, Apr 5, 2013 at 10:20 AM, Mikhail T. mi+t...@aldan.algebra.comwrote: Thrown off by Tony's inflammatory remark, I was not careful with my own choice of words. I was referring to my test-program, which was able to discern directory-changes on BSD, when using libevent, but not when using

watching for new files: libevent vs. libev

2013-04-04 Thread Mikhail T.
Hello! By adding EV_ET to the flags, I can watch a directory for changes -- such as files being added or removed to it -- using libevent (at least, on FreeBSD). Sample program attached. Does libev provide a similar functionality? Some mailing list archives suggest, edge-triggered events aren't

Re: watching for new files: libevent vs. libev

2013-04-04 Thread Jann Horn
On Thu, Apr 04, 2013 at 01:04:35PM -0400, Mikhail T. wrote: Hello! By adding EV_ET to the flags, I can watch a directory for changes -- such as files being added or removed to it -- using libevent (at least, on FreeBSD). Sample program attached. Does libev provide a similar functionality?

Re: watching for new files: libevent vs. libev

2013-04-04 Thread Marc Lehmann
On Thu, Apr 04, 2013 at 01:04:35PM -0400, Mikhail T. mi+t...@aldan.algebra.com wrote: By adding EV_ET to the flags, I can watch a directory for changes -- such as files being added or removed to it -- using libevent (at least, on FreeBSD). Sample program attached. I don't quite understand why