Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
ccfafb47
Commit
ccfafb47
authored
Sep 24, 2006
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Suppress useless warning on pre-XP versions of Windows. Magnus
parent
bbed6678
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
src/bin/pg_ctl/pg_ctl.c
src/bin/pg_ctl/pg_ctl.c
+10
-2
No files found.
src/bin/pg_ctl/pg_ctl.c
View file @
ccfafb47
...
...
@@ -4,7 +4,7 @@
*
* Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
*
* $PostgreSQL: pgsql/src/bin/pg_ctl/pg_ctl.c,v 1.7
1 2006/08/21 10:48:21 meskes
Exp $
* $PostgreSQL: pgsql/src/bin/pg_ctl/pg_ctl.c,v 1.7
2 2006/09/24 16:59:45 tgl
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -1277,6 +1277,14 @@ CreateRestrictedProcess(char *cmd, PROCESS_INFORMATION *processInfo)
/* Verify that we found all functions */
if
(
_IsProcessInJob
==
NULL
||
_CreateJobObject
==
NULL
||
_SetInformationJobObject
==
NULL
||
_AssignProcessToJobObject
==
NULL
||
_QueryInformationJobObject
==
NULL
)
{
/* IsProcessInJob() is not available on < WinXP, so there is no need to log the error every time in that case */
OSVERSIONINFO
osv
;
osv
.
dwOSVersionInfoSize
=
sizeof
(
osv
);
if
(
!
GetVersionEx
(
&
osv
)
||
/* could not get version */
(
osv
.
dwMajorVersion
==
5
&&
osv
.
dwMinorVersion
>
0
)
||
/* 5.1=xp, 5.2=2003, etc */
osv
.
dwMajorVersion
>
5
)
/* anything newer should have the API */
/* Log error if we can't get version, or if we're on WinXP/2003 or newer */
write_stderr
(
"WARNING: Unable to locate all job object functions in system API!
\n
"
);
}
else
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment