summaryrefslogtreecommitdiff
path: root/src/include/postmaster/startup.h
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2012-06-25 21:25:26 +0300
committerPeter Eisentraut <peter_e@gmx.net>2012-06-25 21:30:12 +0300
commiteeece9e60984e76e5a41c1e2fa9efc5a1761e560 (patch)
treef1dfac89e34d678629b3f56ace2bb215b33f4a94 /src/include/postmaster/startup.h
parentc7d47abd04dc1322fd545370cfeb743680df0e3a (diff)
downloadpostgresql-eeece9e60984e76e5a41c1e2fa9efc5a1761e560.tar.gz
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.
Diffstat (limited to 'src/include/postmaster/startup.h')
-rw-r--r--src/include/postmaster/startup.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/postmaster/startup.h b/src/include/postmaster/startup.h
index 3ec69502eb..54400b5d2a 100644
--- a/src/include/postmaster/startup.h
+++ b/src/include/postmaster/startup.h
@@ -13,7 +13,7 @@
#define _STARTUP_H
extern void HandleStartupProcInterrupts(void);
-extern void StartupProcessMain(void);
+extern void StartupProcessMain(void) __attribute__((noreturn));
extern void PreRestoreCommand(void);
extern void PostRestoreCommand(void);
extern bool IsPromoteTriggered(void);