Parcourir la source

vccd: bug fix

intirain il y a 4 ans
Parent
commit
ee4c80c83d
3 fichiers modifiés avec 4 ajouts et 4 suppressions
  1. 1 1
      Makefile
  2. 2 2
      include/vcc/version.h
  3. 1 1
      main.c

+ 1 - 1
Makefile

@@ -1,6 +1,6 @@
 VCCD_MAJOR 		= 1
 VCCD_MINOR 		= 9
-VCCD_PATCH 		= 0
+VCCD_PATCH 		= 1
 VCCD_STR 		= -rc 
 
 VCCD_COMPILE_TIME 	= $(shell date)

+ 2 - 2
include/vcc/version.h

@@ -1,2 +1,2 @@
-#define VCCD_VERSION "vccd 1.9.0 Sun May  1 12:36:32 CST 2022 root"
-#define VCCD_SEMVER "vccd 1.9.0-rc "
+#define VCCD_VERSION "vccd 1.9.1 Sun May  1 13:22:47 CST 2022 root"
+#define VCCD_SEMVER "vccd 1.9.1-rc "

+ 1 - 1
main.c

@@ -88,7 +88,7 @@ int becomes_daemon(void) {
 
 	setsid();
 
-	if (unlikely(fd = open("/var/run/vccd.pid", O_WRONLY | O_CREAT, 0644)) < 0) {
+	if (unlikely((fd = open("/var/run/vccd.pid", O_WRONLY | O_CREAT, 0644)) < 0)) {
 		perror("open(/var/run/vccd.pid)");
 
 		exit(1);