mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 20:23:06 +00:00
Update skynet_daemon.c
This commit is contained in:
@@ -37,7 +37,7 @@ write_pid(const char *pidfile) {
|
|||||||
fprintf(stderr, "Can't create pidfile [%s].\n", pidfile);
|
fprintf(stderr, "Can't create pidfile [%s].\n", pidfile);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
f = fdopen(fd, "r+");
|
f = fdopen(fd, "w+");
|
||||||
if (f == NULL) {
|
if (f == NULL) {
|
||||||
fprintf(stderr, "Can't open pidfile [%s].\n", pidfile);
|
fprintf(stderr, "Can't open pidfile [%s].\n", pidfile);
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user