Update skynet_daemon.c

This commit is contained in:
Dalton
2019-03-20 18:02:07 +08:00
committed by 云风
parent 1d4308f33a
commit 9ffdf2dbde

View File

@@ -37,7 +37,7 @@ write_pid(const char *pidfile) {
fprintf(stderr, "Can't create pidfile [%s].\n", pidfile);
return 0;
}
f = fdopen(fd, "r+");
f = fdopen(fd, "w+");
if (f == NULL) {
fprintf(stderr, "Can't open pidfile [%s].\n", pidfile);
return 0;