mirror of
https://github.com/postgres/postgres.git
synced 2025-12-06 00:02:13 +03:00
Unify calling conventions for postgres/postmaster sub-main functions
There was a wild mix of calling conventions: Some were declared to return void and didn't return, some returned an int exit code, some claimed to return an exit code, which the callers checked, but actually never returned, and so on. Now all of these functions are declared to return void and decorated with attribute noreturn and don't return. That's easiest, and most code already worked that way.
This commit is contained in:
@@ -243,7 +243,7 @@ static instr_time total_func_time;
|
||||
static pid_t pgstat_forkexec(void);
|
||||
#endif
|
||||
|
||||
NON_EXEC_STATIC void PgstatCollectorMain(int argc, char *argv[]);
|
||||
NON_EXEC_STATIC void PgstatCollectorMain(int argc, char *argv[]) __attribute__((noreturn));
|
||||
static void pgstat_exit(SIGNAL_ARGS);
|
||||
static void pgstat_beshutdown_hook(int code, Datum arg);
|
||||
static void pgstat_sighup_handler(SIGNAL_ARGS);
|
||||
|
||||
Reference in New Issue
Block a user