On Wed, 2009-12-16 at 18:46 +0100, Marco Nenciarini wrote:
+#ifndef PATH_MAX +# define PATH_MAX 1024 +#endif
I changed v2.0 code not to rely on PATH_MAX anywhere anymore. For v1.2 I added a similar check to make PATH_MAX to 4096.
diff --git a/src/lib/ioloop-notify-dn.c b/src/lib/ioloop-notify-dn.c --- a/src/lib/ioloop-notify-dn.c +++ b/src/lib/ioloop-notify-dn.c @@ -191,9 +191,15 @@ /* SIGIO is sent if queue gets full. we'll just ignore it. */ signal(SIGIO, SIG_IGN);
+#ifdef SA_SIGINFO act.sa_sigaction = sigrt_handler; sigemptyset(&act.sa_mask); act.sa_flags = SA_SIGINFO | SA_RESTART | SA_NODEFER; +#else + act.sa_handler = sigrt_handler; + sigemptyset(&act.sa_mask); + act.sa_flags = SA_RESTART | SA_NODEFER; +#endif
Does Hurd really support dnotify? Other than that, I did a couple of changes to your lib-signals patch and committed to v1.2 and v2.0.