mirror of
https://github.com/postgres/postgres.git
synced 2025-08-28 18:48:04 +03:00
Message style improvements of errmsg_internal() calls
This commit is contained in:
@@ -83,18 +83,18 @@ pgwin32_signal_initialize(void)
|
||||
pgwin32_signal_event = CreateEvent(NULL, TRUE, FALSE, NULL);
|
||||
if (pgwin32_signal_event == NULL)
|
||||
ereport(FATAL,
|
||||
(errmsg_internal("failed to create signal event: %d", (int) GetLastError())));
|
||||
(errmsg_internal("could not create signal event: %d", (int) GetLastError())));
|
||||
|
||||
/* Create thread for handling signals */
|
||||
signal_thread_handle = CreateThread(NULL, 0, pg_signal_thread, NULL, 0, NULL);
|
||||
if (signal_thread_handle == NULL)
|
||||
ereport(FATAL,
|
||||
(errmsg_internal("failed to create signal handler thread")));
|
||||
(errmsg_internal("could not create signal handler thread")));
|
||||
|
||||
/* Create console control handle to pick up Ctrl-C etc */
|
||||
if (!SetConsoleCtrlHandler(pg_console_handler, TRUE))
|
||||
ereport(FATAL,
|
||||
(errmsg_internal("failed to set console control handler")));
|
||||
(errmsg_internal("could not set console control handler")));
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user