summaryrefslogtreecommitdiffstats
path: root/sbin/hastd/Makefile
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2010-08-30 23:26:10 +0000
committerpjd <pjd@FreeBSD.org>2010-08-30 23:26:10 +0000
commit9b4ae63e7877da8b244dc4d6076cc57bc2f0ef20 (patch)
tree245f35c3193bdea89cf47c51960dd52a809d5f8e /sbin/hastd/Makefile
parent8a7b72b9d3f5a419b8558fe232480453f6c4c070 (diff)
downloadFreeBSD-src-9b4ae63e7877da8b244dc4d6076cc57bc2f0ef20.zip
FreeBSD-src-9b4ae63e7877da8b244dc4d6076cc57bc2f0ef20.tar.gz
Because it is very hard to make fork(2) from threaded process safe (we are
limited to async-signal safe functions in the child process), move all hooks execution to the main (non-threaded) process. Do it by maintaining connection (socketpair) between child and parent and sending events from the child to parent, so it can execute the hook. This is step in right direction for others reasons too. For example there is one less problem to drop privs in worker processes. MFC after: 2 weeks Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com
Diffstat (limited to 'sbin/hastd/Makefile')
-rw-r--r--sbin/hastd/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/hastd/Makefile b/sbin/hastd/Makefile
index bfb62f4..6e3147d 100644
--- a/sbin/hastd/Makefile
+++ b/sbin/hastd/Makefile
@@ -5,7 +5,7 @@
PROG= hastd
SRCS= activemap.c
SRCS+= control.c
-SRCS+= ebuf.c
+SRCS+= ebuf.c event.c
SRCS+= hast_proto.c hastd.c hooks.c
SRCS+= metadata.c
SRCS+= nv.c
OpenPOWER on IntegriCloud