mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-22 02:53:09 +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);
|
||||
return 0;
|
||||
}
|
||||
f = fdopen(fd, "r+");
|
||||
f = fdopen(fd, "w+");
|
||||
if (f == NULL) {
|
||||
fprintf(stderr, "Can't open pidfile [%s].\n", pidfile);
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user