File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -49,16 +49,16 @@ get_pgpid(void)
49
49
elog (ERROR_SYSTEM , _ ("could not open PID file \"%s\": %s\n" ),
50
50
pid_file , strerror (errno ));
51
51
}
52
- if ( fscanf ( pidf , "%ld" , & pid ) != 1 )
53
- {
54
- /* Is the file empty? */
55
- if ( ftell ( pidf ) == 0 && feof ( pidf ))
56
- elog ( ERROR_SYSTEM , _ ( "the PID file \"%s\" is empty\n" ),
57
- pid_file );
58
- else
59
- elog ( ERROR_SYSTEM , _ ( "invalid data in PID file \"%s\"\n" ),
60
- pid_file );
61
- }
52
+ }
53
+ if ( fscanf ( pidf , "%ld" , & pid ) != 1 )
54
+ {
55
+ /* Is the file empty? */
56
+ if ( ftell ( pidf ) == 0 && feof ( pidf ))
57
+ elog ( ERROR_SYSTEM , _ ( "the PID file \"%s\" is empty\n" ),
58
+ pid_file );
59
+ else
60
+ elog ( ERROR_SYSTEM , _ ( "invalid data in PID file \"%s\"\n" ),
61
+ pid_file );
62
62
}
63
63
fclose (pidf );
64
64
return (pgpid_t ) pid ;
You can’t perform that action at this time.
0 commit comments