Skip to content

Commit

Permalink
Update skynet_daemon.c
Browse files Browse the repository at this point in the history
  • Loading branch information
zhust2003 authored and cloudwu committed Mar 20, 2019
1 parent 1d4308f commit 9ffdf2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion skynet-src/skynet_daemon.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9ffdf2d

Please sign in to comment.