diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2015-03-12 15:55:08 +0100 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2015-03-12 15:59:57 +0100 |
commit | c9e4f2c16ea032e9359b0203a2a11973d172ace7 (patch) | |
tree | 7291be818daef4a4966111b2699ea4b49e1913ba /Makefile | |
parent | 03e9f2891d17643e603f3fd5f88dc61556e38802 (diff) | |
download | nldev-c9e4f2c16ea032e9359b0203a2a11973d172ace7.tar.bz2 nldev-c9e4f2c16ea032e9359b0203a2a11973d172ace7.tar.xz |
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.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 |