Browse Source

fix daemon mode

Waldemar Brodkorb 14 năm trước cách đây
mục cha
commit
7330eb4540
3 tập tin đã thay đổi với 3 bổ sung4 xóa
  1. 1 1
      package/base-files/Makefile
  2. 1 2
      package/uvd/Makefile
  3. 1 1
      package/uvd/src/uvd.c

+ 1 - 1
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
 

+ 1 - 2
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

+ 1 - 1
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 */