pgpool2.git / summary / log / commit / refs

commit    f492ebecd87e06dd12480aeba16e4a6f33917157
Author:   at.mitani <at.mitani@gmail.com>
Date:     Sat Jun 09 09:10:35 2012 +0000

    change to fsync from fflush in write_pid_file().


main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.c b/main.c index 08af962c7..008869f9b 100644 --- a/main.c +++ b/main.c @@ -997,7 +997,7 @@ static void write_pid_file(void) } snprintf(pidbuf, sizeof(pidbuf), "%d", (int)getpid()); fwrite(pidbuf, strlen(pidbuf)+1, 1, fd); - fflush(fd); + fsync(fd); if (fclose(fd)) { pool_error("could not write pid file as %s. reason: %s", [parent: 474b486026a8]