From 7330eb454048ec7e892535df79eb49b59d819a7c Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Fri, 2 Jul 2010 15:55:24 +0200 Subject: fix daemon mode --- package/base-files/Makefile | 2 +- package/uvd/Makefile | 3 +-- package/uvd/src/uvd.c | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) (limited to 'package') diff --git a/package/base-files/Makefile b/package/base-files/Makefile index 7ca456dbb..033844c1e 100644 --- a/package/base-files/Makefile +++ b/package/base-files/Makefile @@ -6,7 +6,7 @@ include $(TOPDIR)/mk/rootfs.mk PKG_NAME:= base-files PKG_VERSION:= 1.0 -PKG_RELEASE:= 14 +PKG_RELEASE:= 15 PKG_DESCR:= basic filesystem structure and scripts PKG_SECTION:= base diff --git a/package/uvd/Makefile b/package/uvd/Makefile index 75aa907e6..a1ebf2897 100644 --- a/package/uvd/Makefile +++ b/package/uvd/Makefile @@ -5,7 +5,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:= uvd PKG_VERSION:= 0.1 -PKG_RELEASE:= 1 +PKG_RELEASE:= 2 PKG_DESCR:= small udp server for version information PKG_SECTION:= base PKG_URL:= http://www.openadk.org @@ -28,5 +28,4 @@ do-install: ${INSTALL_DIR} ${IDIR_UVD}/sbin ${INSTALL_BIN} ${WRKBUILD}/uvd ${IDIR_UVD}/sbin -# please remove ALL above comments, before commiting include ${TOPDIR}/mk/pkg-bottom.mk diff --git a/package/uvd/src/uvd.c b/package/uvd/src/uvd.c index f41a5c885..72d7980c1 100644 --- a/package/uvd/src/uvd.c +++ b/package/uvd/src/uvd.c @@ -157,7 +157,7 @@ int main(int argc, char **argv) { if (daemonize) { /* Create a new session for child process */ - if ((sid = setsid()) < 0); + if ((sid = setsid()) < 0) die_log(lf, "Can't create a new session for child process"); /* Change the current working directory */ -- cgit v1.2.3