aboutsummaryrefslogtreecommitdiff
path: root/grecs
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2013-06-01 17:05:48 +0300
committerSergey Poznyakoff <gray@gnu.org.ua>2013-06-01 17:05:48 +0300
commite203db313dc14aa18fc4680b12a6aba45eedacd5 (patch)
tree121fe207a26d33a617dd9d2b35a525e98203f4f9 /grecs
parent69bee1b454d8fd397e21c4fc415847f72a07609f (diff)
downloaddirevent-e203db313dc14aa18fc4680b12a6aba45eedacd5.tar.gz
direvent-e203db313dc14aa18fc4680b12a6aba45eedacd5.tar.bz2
Initial support for Darwin.
Basically the same as BSD, except that it lacks rfork, which makes it impossible to initialize watchers before daemonizing. * configure.ac: Check for rfork, define the DIRCOND_FORK conditional if present. * src/Makefile.am [DIRCOND_KQUEUE][DIRCOND_RFORK]: Add rdaemon.c to the sources. * src/dircond.c: Define INIT_EARLY if it is safe to initialize the event system before forking. Currently the only supported system that's not capable of that is Darwin. (main): Call setup_watchers conditionally, before or after the call to daemon. Move call to evsys_init to setup_watchers. Reorganize the main loop. * src/dircond.h (event_mask_init): Change signature. The third argument specifies which mask bits we're interested in. All uses changed. * src/event.c: Ditto. * src/watcher.c (setup_watchers): Call evsys_init.
Diffstat (limited to 'grecs')
m---------grecs0
1 files changed, 0 insertions, 0 deletions
diff --git a/grecs b/grecs
-Subproject 1d38d5397e97063f07e7ff84649debfdd5032ee
+Subproject d22d5aa5d79ab2a393fa759ef9775f9bdae11a0

Return to:

Send suggestions and report system problems to the System administrator.