[Fawkes Git] branch/fzwilling/sub_process: utils: added libdeamon to makefile to close sockets in SubProcess

Frederik Zwilling zwilling at kbsg.rwth-aachen.de
Thu Oct 6 19:03:07 CEST 2016


Changes have been pushed for the project "Fawkes Robotics Software Framework".

Gitweb: http://git.fawkesrobotics.org/fawkes.git
Trac:   http://trac.fawkesrobotics.org

The branch, fzwilling/sub_process has been updated
        to  eda2a2b2116e9d1baf13c8364ef2d703d7911f26 (commit)
      from  c28d7b925e67ec47329d510df1d4896727053c6c (commit)

http://git.fawkesrobotics.org/fawkes.git/fzwilling/sub_process

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- *Log* ---------------------------------------------------------------
commit eda2a2b2116e9d1baf13c8364ef2d703d7911f26
Author:     Frederik Zwilling <zwilling at kbsg.rwth-aachen.de>
AuthorDate: Thu Oct 6 18:00:00 2016 +0200
Commit:     Frederik Zwilling <zwilling at kbsg.rwth-aachen.de>
CommitDate: Thu Oct 6 19:03:01 2016 +0200

    utils: added libdeamon to makefile to close sockets in SubProcess

http://git.fawkesrobotics.org/fawkes.git/commit/eda2a2b
http://trac.fawkesrobotics.org/changeset/eda2a2b

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -


- *Summary* -----------------------------------------------------------
 src/libs/utils/Makefile |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)


- *Diffs* -------------------------------------------------------------

- *commit* eda2a2b2116e9d1baf13c8364ef2d703d7911f26 - - - - - - - - - -
Author:  Frederik Zwilling <zwilling at kbsg.rwth-aachen.de>
Date:    Thu Oct 6 18:00:00 2016 +0200
Subject: utils: added libdeamon to makefile to close sockets in SubProcess

 src/libs/utils/Makefile |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

_Diff for modified files_:
diff --git a/src/libs/utils/Makefile b/src/libs/utils/Makefile
index abb419d..eb81688 100644
--- a/src/libs/utils/Makefile
+++ b/src/libs/utils/Makefile
@@ -45,6 +45,14 @@ OBJS_lua_fawkesutils = fawkesutils_tolua.o
 CFLAGS  += $(CFLAGS_LIBMAGIC)
 LDFLAGS += $(LDFLAGS_LIBMAGIC)
 
+HAVE_LIBDAEMON = $(if $(shell $(PKGCONFIG) --exists 'libdaemon'; echo $${?/1/}),1,0)
+ifeq ($(HAVE_LIBDAEMON),1)
+  CFLAGS  +=  -DHAVE_LIBDAEMON $(shell $(PKGCONFIG) --cflags 'libdaemon')
+  LDFLAGS += $(shell $(PKGCONFIG) --libs 'libdaemon')
+else
+  WARN_TARGETS += warning_libdaemon
+endif
+
 OBJS_all = $(OBJS_libfawkesutils) $(OBJS_lua_fawkesutils)
 
 ifeq ($(HAVE_TOLUA)$(HAVE_CPP11)$(HAVE_BOOST_LIBS),111)
@@ -81,6 +89,8 @@ warning_cpp11:
 		"(CPP11 not available)"
 $(WARN_TARGETS_BOOST): warning_boost_%:
 	$(SILENT)echo -e "$(INDENT_PRINT)--> $(TRED)Cannot build utils library$(TNORMAL) (Boost library $* not found)"endif
+warning_libdaemon:
+	$(SILENT)echo -e "$(INDENT_PRINT)--> $(TRED)Sub-process cannot close all file handles$(TNORMAL) (libdaemon not found)"
 
 endif
 




-- 
Fawkes Robotics Framework                 http://www.fawkesrobotics.org


More information about the fawkes-commits mailing list