From c9e4f2c16ea032e9359b0203a2a11973d172ace7 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Thu, 12 Mar 2015 15:55:08 +0100 Subject: forward the events to a helper process via pipe To reduce number of forks we pass over the events to a helper program via a pipe. when there are no events for a certain time the helper program can exit to save memory. Once new events arrives the nldev application will respawn the helper. --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index e28138f..a15252b 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,7 @@ include config.mk SRC = ${NAME}.c OBJ = ${SRC:.c=.o} log.o -all: options ${NAME} +all: options ${NAME} nldev-handler options: @echo ${NAME} build options: @@ -24,6 +24,10 @@ ${NAME}: ${OBJ} @echo CC -o $@ @${CC} -o $@ ${OBJ} ${LDFLAGS} +# hack for now +nldev-handler: nldev-handler.o log.o + ${CC} -o $@ $^ ${LDFLAGS} + clean: @echo cleaning @rm -f ${NAME} ${OBJ} ${NAME}-${VERSION}.tar.gz -- cgit v1.2.3