summaryrefslogtreecommitdiff
path: root/package/uvd
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2010-07-02 15:55:24 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2010-07-02 15:55:24 +0200
commit7330eb454048ec7e892535df79eb49b59d819a7c (patch)
tree0a78238ddbc516d935a927d589f5f9bbf673cdfb /package/uvd
parentd8c7316c1694601eba73f02e4ce8507873bd1bb8 (diff)
fix daemon mode
Diffstat (limited to 'package/uvd')
-rw-r--r--package/uvd/Makefile3
-rw-r--r--package/uvd/src/uvd.c2
2 files changed, 2 insertions, 3 deletions
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 */