From 8756e130098254564ebbfb878efdc9f2a24a0696 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 17 Feb 2010 18:18:05 +1100 Subject: util: added samba_runcmd() This allows us to run a child command in an async fashion, with control over logging of stdout and stderr (which appears in the Samba log file). This is useful for ensuring we don't miss important messages from rndc commands (for example). Pair-Programmed-With: Andrew Bartlett --- lib/util/config.mk | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/util/config.mk') diff --git a/lib/util/config.mk b/lib/util/config.mk index b6125563fb..7df5227bee 100644 --- a/lib/util/config.mk +++ b/lib/util/config.mk @@ -88,3 +88,8 @@ UTIL_TEVENT_OBJ_FILES = $(addprefix $(libutilsrcdir)/, \ PUBLIC_DEPENDENCIES = LIBLDB UTIL_LDB_OBJ_FILES = $(libutilsrcdir)/util_ldb.o + +[SUBSYSTEM::UTIL_RUNCMD] +PUBLIC_DEPENDENCIES = LIBTEVENT + +UTIL_RUNCMD_OBJ_FILES = $(libutilsrcdir)/util_runcmd.o -- cgit