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/uvd/Makefile | 3 +-- package/uvd/src/uvd.c | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'package/uvd') 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