From 4f6fe9c7ebc571602ab74858a8fda40d6d7fd908 Mon Sep 17 00:00:00 2001 From: Justus Winter <4winter@informatik.uni-hamburg.de> Date: Fri, 26 Jul 2013 18:52:43 +0200 Subject: console-client: add daemonizing support This patch adds daemonizing support using libdaemon. * console-client/console.c (daemonize): New variable. (options): Add --daemonize argument. (parse_opt): Handle --daemonize argument. (daemon_error): New error(3) like macro. (main): Daemonize. * console-client/Makefile: Use libdaemon specific build flags. --- console-client/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'console-client/Makefile') diff --git a/console-client/Makefile b/console-client/Makefile index 69a7e371..65a04e0d 100644 --- a/console-client/Makefile +++ b/console-client/Makefile @@ -37,11 +37,11 @@ SRCS = $(CONSOLE_SRCS) \ VPATH += $(srcdir)/xkb OBJS = $(addsuffix .o,$(basename $(notdir $(SRCS)))) kdioctlServer.o HURDLIBS = cons ports netfs fshelp iohelp ihash shouldbeinlibc -LDLIBS = -ldl -lpthread +LDLIBS = -ldl -lpthread $(libdaemon_LIBS) module-dir = $(libdir)/hurd/console console-LDFLAGS = -Wl,-E -CPPFLAGS += -I$(CURDIR)/xkb -I$(srcdir)/xkb +CPPFLAGS += -I$(CURDIR)/xkb -I$(srcdir)/xkb $(libdaemon_CFLAGS) LFLAGS = -i YFLAGS = -by XKB_DATA_FILES = keymap/hurd types/hurd symbols/hurd -- cgit v1.2.3