mirror of
https://github.com/postgres/postgres.git
synced 2025-08-05 07:41:25 +03:00
Pre-beta mechanical code beautification.
Run pgindent, pgperltidy, and reformat-dat-files. I manually fixed a couple of comments that pgindent uglified.
This commit is contained in:
@@ -1750,7 +1750,7 @@ typedef BOOL (WINAPI * __QueryInformationJobObject) (HANDLE, JOBOBJECTINFOCLASS,
|
||||
* achieves the goal of postmaster running in a similar environment as pg_ctl.
|
||||
*/
|
||||
static void
|
||||
InheritStdHandles(STARTUPINFO* si)
|
||||
InheritStdHandles(STARTUPINFO *si)
|
||||
{
|
||||
si->dwFlags |= STARTF_USESTDHANDLES;
|
||||
si->hStdInput = GetStdHandle(STD_INPUT_HANDLE);
|
||||
@@ -1802,8 +1802,8 @@ CreateRestrictedProcess(char *cmd, PROCESS_INFORMATION *processInfo, bool as_ser
|
||||
si.cb = sizeof(si);
|
||||
|
||||
/*
|
||||
* Set stdin/stdout/stderr handles to be inherited in the child
|
||||
* process. That allows postmaster and the processes it starts to perform
|
||||
* Set stdin/stdout/stderr handles to be inherited in the child process.
|
||||
* That allows postmaster and the processes it starts to perform
|
||||
* additional checks to see if running in a service (otherwise they get
|
||||
* the default console handles - which point to "somewhere").
|
||||
*/
|
||||
|
@@ -8,7 +8,7 @@ use PostgreSQL::Test::Cluster;
|
||||
use PostgreSQL::Test::Utils;
|
||||
use Test::More;
|
||||
|
||||
my $tempdir = PostgreSQL::Test::Utils::tempdir;
|
||||
my $tempdir = PostgreSQL::Test::Utils::tempdir;
|
||||
|
||||
command_exit_is([ 'pg_ctl', 'status', '-D', "$tempdir/nonexistent" ],
|
||||
4, 'pg_ctl status with nonexistent directory');
|
||||
|
Reference in New Issue
Block a user