1 Jun 2011 10:15
Re: nearly-tickless-tinc
2011/5/31 Guus Sliepen <guus@...>: > On Mon, May 30, 2011 at 08:39:48AM +0200, Loïc Grenié wrote: > >> My wife has a Mac with MacOS/X (I think). I should be able to compile >> something next week. pselect seems to be available since at least 10.3 > > Great. I'll test asap. >> However, once again, if pselect() is not available or not compatible or >> whatever it can be emulated with a select: > > Yes. You can add a check in configure.in for pselect(), and add the necessary > #ifdefs to ensure it automatically selects the right thing. What do you think about the racy "glibc pselect" ? Right now I do not test for it. It is probably possible to test for it using syscall(2), either at compile time or at runtime. >> PS: in my first patch, the signal mask I gave as last argument of >> pselect() was wrong, sorry. The attached patch should be correct. > > Looks good! If you can add the configure.in checks, and write a description for > your patch, I can commit it to the git repository without any changes :) We'll see ! Right now I have hijacked timespec and tv_nsec in net.c -- when not using pselect() -- to streamline mail_loop source code -- it's probably not very good software engineering. What do you prefer ?(Continue reading)
RSS Feed